コード例 #1
0
 /**
  * get last defined req doc id for specific test project
  * 
  * @author Julian Krien
  * 
  * @param int $tproj_id test project id
  * 
  * @return string last defned req doc id
  */
 function get_last_doc_id_for_testproject($tproj_id)
 {
     $info = null;
     $tproject_mgr = new testproject($this->db);
     $all_reqs = $tproject_mgr->get_all_requirement_ids($tproj_id);
     if (count($all_reqs) > 0) {
         //only use maximum value of all reqs array
         $last_req = max($all_reqs);
         $last_req = $this->get_by_id($last_req);
         $info = $last_req[0]['req_doc_id'];
     }
     return $info;
 }