PHP Class PHPDaemon\Examples\ExampleJabberbot

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Core\AppInstance
Mostra file Open project: kakserpom/phpdaemon

Public Properties

Property Type Description
$xmppclient
$xmppconn

Public Methods

Method Description
connect ( )
init ( ) : void Constructor.
onConfigUpdated ( ) : void Called when worker is going to update configuration.
onReady ( ) : void Called when the worker is ready to go.
onShutdown ( ) : boolean Called when application instance is going to shutdown.

Protected Methods

Method Description
getConfigDefaults ( ) : array | false Setting default config options Overriden from AppInstance::getConfigDefaults Uncomment and return array with your default options

Method Details

connect() public method

public connect ( )

getConfigDefaults() protected method

Setting default config options Overriden from AppInstance::getConfigDefaults Uncomment and return array with your default options
protected getConfigDefaults ( ) : array | false
return array | false

init() public method

Constructor.
public init ( ) : void
return void

onConfigUpdated() public method

Called when worker is going to update configuration.
public onConfigUpdated ( ) : void
return void

onReady() public method

Called when the worker is ready to go.
public onReady ( ) : void
return void

onShutdown() public method

Called when application instance is going to shutdown.
public onShutdown ( ) : boolean
return boolean Ready to shutdown?

Property Details

$xmppclient public_oe property

public $xmppclient

$xmppconn public_oe property

public $xmppconn