Storage::getJobs PHP Method

getJobs() public method

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

Usage Example

Exemplo n.º 1
0
 public function getSampleJobs($tube = null)
 {
     $storage = new Storage($this->_globalVar['config']['storage']);
     if ($tube) {
         return $storage->getJobsForTube($tube);
     } else {
         return $storage->getJobs();
     }
 }