Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • blogImportPlugin
  • blogImportPluginBackendRunController
  • blogImportPluginBackendSettingsAction
  • blogImportPluginBackendSetupController
  • blogImportPluginLjTransport
  • blogImportPluginTransport
  • blogImportPluginWebasystRemoteTransport
  • blogImportPluginWebasystSameTransport
  • blogImportPluginWebasystTransport
  • blogImportPluginWordpressTransport
  • blogImportPluginXmlrpcTransport
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class blogImportPluginBackendRunController

waController
Extended by waLongActionController
Extended by blogImportPluginBackendRunController
Package: wa-apps\blog\plugin\import
Located at wa-apps/blog/plugins/import/lib/actions/backend/blogImportPluginBackendRun.controller.php
Methods summary
protected boolean
# preInit( )

Checks if it's ok to initialize a new process.

Checks if it's ok to initialize a new process.

Returns

boolean
true if initialization can start

Overrides

waLongActionController::preInit()
public
# execute( )

Overrides

waLongActionController::execute()
private
# initPlugin( )
protected
# init( )

Initializes new process. Runs inside a transaction ($this->data and $this->fd are accessible).

Initializes new process. Runs inside a transaction ($this->data and $this->fd are accessible).

protected boolean
# step( )

Performs a small piece of work. Runs inside a transaction ($this->data and $this->fd are accessible).

Performs a small piece of work. Runs inside a transaction ($this->data and $this->fd are accessible).

The longer it takes to complete one step, the more time it is possible to lose if script fails. The shorter, the more overhead there are because of copying $this->data and $this->fd after each step. So, it should be reasonably long and reasonably short at the same time. 5-10% of max execution time is recommended.

$this->getStorage() session is already closed.

Returns

boolean
false to end this Runner and call info(); true to continue.
protected boolean
# finish( mixed $filename )

Called when $this->isDone() is true $this->data is read-only, $this->fd is not available.

Called when $this->isDone() is true $this->data is read-only, $this->fd is not available.

$this->getStorage() session is already closed.

Parameters

$filename
mixed
$filename string full path to resulting file

Returns

boolean
true to delete all process files; false to be able to access process again.
protected boolean
# isDone( )

Checks if there is any more work for $this->step() to do. Runs inside a transaction ($this->data and $this->fd are accessible).

Checks if there is any more work for $this->step() to do. Runs inside a transaction ($this->data and $this->fd are accessible).

$this->getStorage() session is already closed.

Returns

boolean
whether all the work is done
protected
# info( )

Called by a Messenger when the Runner is still alive, or when a Runner exited voluntarily, but isDone() is still false.

Called by a Messenger when the Runner is still alive, or when a Runner exited voluntarily, but isDone() is still false.

This function must send $this->processId to allow user to continue.

$this->data is read-only. $this->fd is not available.

Overrides

waLongActionController::info()
protected
# restore( )

Called by a new Runner when the old one dies. Should be used to restore any non-persistent data for $this->step() if needed. Runs inside a transaction ($this->data and $this->fd are accessible). $this->getStorage() session is already closed.

Called by a new Runner when the old one dies. Should be used to restore any non-persistent data for $this->step() if needed. Runs inside a transaction ($this->data and $this->fd are accessible). $this->getStorage() session is already closed.

Overrides

waLongActionController::restore()
private blogImportPluginTransport
# getTransport( )

Returns

blogImportPluginTransport
Methods inherited from waLongActionController
__get(), __set(), save(), shutdown()
Methods inherited from waController
__call(), appSettings(), configPath(), getApp(), getAppId(), getConfig(), getPluginRoot(), getRequest(), getResponse(), getRights(), getStorage(), getUser(), getUserId(), log(), logAction(), preExecute(), redirect(), run(), storage()
Constants inherited from waLongActionController
TYPE_MESSENGER, TYPE_NONE, TYPE_RUNNER
Properties summary
private blogImportPlugin $plugin
#
private blogImportPluginTransport $transport
#
private array $errors array()
#
Properties inherited from waLongActionController
$_read_attempt_limit
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0