/** * Fetch data for the project * */ protected function _fetchProjectData() { $this->_resultSet = getProjectStatsVolumeAnalysis($this->id_project); try { $amqHandler = new Analysis_QueueHandler(); $segmentsBeforeMine = $amqHandler->getActualForQID($this->id_project); } catch (Exception $e) { $segmentsBeforeMine = null; } $this->_others_in_queue = $segmentsBeforeMine >= 0 ? $segmentsBeforeMine : 0; $this->total_segments = count($this->_resultSet); //get status of project $this->status_project = $this->_project_data[0]['status_analysis']; }