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