示例#1
0
 public function getPriorityParent($data)
 {
     if ($data->p_parent != 0) {
         $ret = Priority::find(array('condition' => 'p_id=' . $data->p_parent));
         return $ret->p_title;
     } else {
         return 'N/A';
     }
 }