/** * Get job's error information from the database. * NB: It must be explicitly invoked after class initialization. * @throws Exception Throws exception on DB fail */ public function retrieveJobErrorTotals() { $errorCountDao = new ErrorCount_ErrorCountDAO(Database::obtain()); $searchErrorCountStruct = new ErrorCount_Struct(); $searchErrorCountStruct->setIdJob($this->job_id); $searchErrorCountStruct->setJobPassword($this->job_password); $jobErrorTotals = $errorCountDao->read($searchErrorCountStruct); /** * @var $jobErrorTotals ErrorCount_Struct */ $jobErrorTotals = $jobErrorTotals[0]; $this->job_error_totals = $jobErrorTotals; }