Exemplo n.º 1
0
 /**
 Searches the database and returns the results in the same form as the getall form.
 @return boolean
 */
 public function search()
 {
     global $__in, $__out;
     try {
         $group = new group();
         $group->set_paging(25);
         $__out['arr_groups'] = $group->__search($__in['group_search'], $__in['__orderby'], $__in['__desc'] == 'yes' ? false : true);
     } catch (ValidationException $ex) {
         $ex->publish_errors();
     } catch (Exception $ex) {
         throw $ex;
     }
     $__out['group_search_link'] = array("group_search" => $__in['group_search']);
     $__out['group'] = $group->this_to_array();
     return true;
 }