PHP Class Console

Example: Writing to standard output uses('util.cmd.Console'); Console::writeLine('Hello ', 'a', 'b', 1); // Hello ab1 Console::writeLinef('Hello %s', 'World'); // Hello World Console::$out->write('.'); Example: Writing to standard error uses('util.cmd.Console'); Console::$err->writeLine('*** An error occured: ', $e->toString());
See also: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemConsoleClassTopic.asp
Inheritance: extends Object
ファイルを表示 Open project: ptrofimov/beanstalk_console Class Usage Examples

Public Properties

Property Type Description
$interface

Protected Properties

Property Type Description
$_errors
$_globalVar
$_tplVars

Public Methods

Method Description
__construct ( )
getErrors ( )
getSampleJobs ( $tube = null )
getSearchResult ( )
getServerStats ( $server )
getServerStatsGroups ( )
getServers ( ) : array
getServersConfig ( ) : array
getServersCookie ( ) : array
getServersEnv ( ) : array
getTplVars ( $var = null )
getTubeStatFields ( )
getTubeStatGroups ( )
getTubeStatValues ( $tube )
getTubeStatVisible ( )

Protected Methods

Method Description
__init ( )
_actionAddSample ( )
_actionAddjob ( )
_actionClearTubes ( )
_actionDelete ( )
_actionDeleteAll ( $tube = null )
_actionDeleteJob ( )
_actionDeleteSample ( )
_actionEditSample ( )
_actionKick ( )
_actionKickJob ( )
_actionLoadSample ( )
_actionManageSamples ( )
_actionMoveJobsTo ( )
_actionNewSample ( )
_actionPause ( )
_actionReloader ( )
_actionSearch ( )
_actionServersRemove ( )
_main ( )
_postDelete ( )
deleteAllFromTube ( $state, $tube )

Private Methods

Method Description
_storeSampleJob ( $post, $jobData )
findJobsByState ( $tube, $state, $searchStr, $limit = 25 )
moveJobsFromTo ( $server, $tube, $state, $destTube )
moveJobsToState ( $server, $tube, $state, $destState )

Method Details

__construct() public method

public __construct ( )

__init() protected method

protected __init ( )

_actionAddSample() protected method

protected _actionAddSample ( )

_actionAddjob() protected method

protected _actionAddjob ( )

_actionClearTubes() protected method

protected _actionClearTubes ( )

_actionDelete() protected method

protected _actionDelete ( )

_actionDeleteAll() protected method

protected _actionDeleteAll ( $tube = null )

_actionDeleteJob() protected method

protected _actionDeleteJob ( )

_actionDeleteSample() protected method

protected _actionDeleteSample ( )

_actionEditSample() protected method

protected _actionEditSample ( )

_actionKick() protected method

protected _actionKick ( )

_actionKickJob() protected method

protected _actionKickJob ( )

_actionLoadSample() protected method

protected _actionLoadSample ( )

_actionManageSamples() protected method

protected _actionManageSamples ( )

_actionMoveJobsTo() protected method

protected _actionMoveJobsTo ( )

_actionNewSample() protected method

protected _actionNewSample ( )

_actionPause() protected method

protected _actionPause ( )

_actionReloader() protected method

protected _actionReloader ( )

_actionSearch() protected method

protected _actionSearch ( )

_actionServersRemove() protected method

protected _actionServersRemove ( )

_main() protected method

protected _main ( )

_postDelete() protected method

protected _postDelete ( )

deleteAllFromTube() protected method

protected deleteAllFromTube ( $state, $tube )

getErrors() public method

public getErrors ( )

getSampleJobs() public method

public getSampleJobs ( $tube = null )

getSearchResult() public method

public getSearchResult ( )

getServerStats() public method

public getServerStats ( $server )

getServerStatsGroups() public method

getServers() public method

public getServers ( ) : array
return array

getServersConfig() public method

public getServersConfig ( ) : array
return array

getServersCookie() public method

public getServersCookie ( ) : array
return array

getServersEnv() public method

public getServersEnv ( ) : array
return array

getTplVars() public method

public getTplVars ( $var = null )

getTubeStatFields() public method

public getTubeStatFields ( )

getTubeStatGroups() public method

public getTubeStatGroups ( )

getTubeStatValues() public method

public getTubeStatValues ( $tube )

getTubeStatVisible() public method

public getTubeStatVisible ( )

Property Details

$_errors protected_oe property

protected $_errors

$_globalVar protected_oe property

protected $_globalVar

$_tplVars protected_oe property

protected $_tplVars

$interface public_oe property

public $interface