Example #1
0
 public function get_info($id)
 {
     try {
         $info = Model_Project::data_access()->find_by_pk($id);
         $hosts = Model_Host::data_access()->filter(Model_Host::PID, $id)->find();
         $excludes = Model_Exclude::data_access()->filter(Model_Exclude::PID, $id)->find();
         $info->hosts = $hosts;
         $info->excludes = $excludes;
     } catch (Exception $ex) {
         $info = false;
     }
     return $info;
 }
Example #2
0
 public function get_exclude($pid)
 {
     $pid = intval($pid);
     $exclude = Model_Exclude::data_access()->filter(Model_Exclude::PID, $pid)->find();
     return $exclude;
 }