Storage::getJobs PHP Method

getJobs() public method

public getJobs ( )
    public function getJobs()
    {
        $collection = $this->readCollection();
        return @$collection[self::VERSION]['jobs'];
    }

Usage Example

コード例 #1
0
ファイル: include.php プロジェクト: bingben/beanstalk_console
 public function getSampleJobs($tube = null)
 {
     $storage = new Storage($this->_globalVar['config']['storage']);
     if ($tube) {
         return $storage->getJobsForTube($tube);
     } else {
         return $storage->getJobs();
     }
 }