| | |
| | | { |
| | | public $primary_key = 'ID'; |
| | | public $readonly = true; |
| | | public $groups = true; |
| | | |
| | | private $filter; |
| | | private $result; |
| | |
| | | $this->filter = null; |
| | | } |
| | | |
| | | function list_groups($search = null) |
| | | { |
| | | return array( |
| | | array('ID' => 'testgroup1', 'name' => "Testgroup"), |
| | | array('ID' => 'testgroup2', 'name' => "Sample Group"), |
| | | ); |
| | | } |
| | | |
| | | public function list_records($cols=null, $subset=0) |
| | | { |
| | | $this->result = $this->count(); |
| | |
| | | return $this->result; |
| | | } |
| | | |
| | | public function search($fields, $value, $strict=false, $select=true) |
| | | public function search($fields, $value, $strict=false, $select=true, $nocount=false, $required=array()) |
| | | { |
| | | // no search implemented, just list all records |
| | | return $this->list_records(); |
| | |
| | | |
| | | return $assoc && $sql_arr ? $sql_arr : $this->result; |
| | | } |
| | | |
| | | |
| | | function create_group($name) |
| | | { |
| | | $result = false; |
| | | |
| | | return $result; |
| | | } |
| | | |
| | | function delete_group($gid) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | function rename_group($gid, $newname) |
| | | { |
| | | return $newname; |
| | | } |
| | | |
| | | function add_to_group($group_id, $ids) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | function remove_from_group($group_id, $ids) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | } |