function search($user_ = null) { $res = $_SESSION['service']->users_groups_list_partial($this->search_item, $this->search_fields, $user_); if (is_null($res) or is_null($res['data'])) { return array(); } $groups = array(); foreach ($res['data'] as $item_id => $item) { $group = new UsersGroup($item); if (!$group->is_valid()) { continue; } $groups[] = $group; } uasort($groups, "usergroup_cmp"); $this->partial_result = $res['partial']; $this->result = $groups; return $this->result; }
public function users_group_info($id_) { $args = func_get_args(); // func_get_args(): Can't be used as a function parameter before PHP 5.3.0 $res = $this->__call('users_group_info', $args); if ($res === null) { return null; } $group = new UsersGroup($res); if (!$group->is_valid()) { return null; } return $group; }