create_group($name); } /** * @see Identity_Driver::everbody. */ static function everybody() { return Identity::instance()->everybody(); } /** * @see Identity_Driver::registered_users. */ static function registered_users() { return Identity::instance()->everybody(); } /** * Look up a group by id. * @param integer $id the user id * @return Group_Definition the group object, or null if the id was invalid. */ static function lookup($id) { return Identity::instance()->lookup_group_by_field("id", $id); } /** * Look up a group by name. * @param integer $id the group name * @return Group_Definition the group object, or null if the name was invalid. */ static function lookup_by_name($name) { return Identity::instance()->lookup_group_by_field("name", $name); } /** * @see Identity_Driver::get_group_list. */ static function get_group_list($filter=array()) { return Identity::instance()->get_group_list($filter); } /** * @see Identity_Driver::get_edit_rules. */ static function get_edit_rules() { return Identity::instance()->get_edit_rules("group"); } }