Exemplo n.º 1
0
 public function get_task_type($restrict = NULL)
 {
     $query = "SELECT id_type , name FROM task_type WHERE status LIKE 1";
     if ($restrict != NULL) {
         if ($restrict >= 2) {
             $query .= " AND id_type NOT LIKE 1";
         }
     }
     return parent::RawQuery($query, PDO::FETCH_CLASS);
 }