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());
显示文件
Open project: ptrofimov/beanstalk_console
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$interface |
Property | Type | Description | |
---|---|---|---|
$_errors | |||
$_globalVar | |||
$_tplVars |
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 ( ) |
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 ) |
Method | Description | |
---|---|---|
_storeSampleJob ( $post, $jobData ) | ||
findJobsByState ( $tube, $state, $searchStr, $limit = 25 ) | ||
moveJobsFromTo ( $server, $tube, $state, $destTube ) | ||
moveJobsToState ( $server, $tube, $state, $destState ) |