Esempio n. 1
0
 /**
  * Ftehces information about a batch on the basis of Btach_id
  * 
  * @param int $batch_id
  */
 private function findBatchInfo($batch_id)
 {
     $batch = new Core_Model_Batch();
     $batch->setBatch_id($batch_id);
     $info = $batch->fetchInfo();
     if ($info instanceof Core_Model_Batch) {
         $batch_info = array();
         $batch_info['department_id'] = $info->getDepartment_id();
         $batch_info['programme_id'] = $info->getProgramme_id();
         $batch_info['batch_start'] = $info->getBatch_start();
         $batch_info['batch_number'] = $info->getBatch_number();
         $batch_info['is_active'] = $info->getIs_active();
         return $batch_info;
     } else {
         return false;
     }
 }