public static function find($request, $match)
    {
        $perm = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['role_id']);
        $pag = new Pluf_Paginator(new User_Account());
        $sql = new Pluf_SQL('user_role_id=%s', array(
            $perm->id
        ));
        $pag->forced_where = $sql;
        $pag->list_filters = array(
            'is_active',
            'login',
            'first_name',
            'last_name',
            'email'
        );
        $pag->sort_order = array(
            'id',
            'ASC'
        );
        $search_fields = array(
            'login',
            'first_name',
            'last_name',
            'email'
        );
        $list_display = array(
            'login' => __('login'),
            'first_name' => __('first name'),
            'last_name' => __('last name'),
            'email' => __('email')
        );
        $sort_fields = array(
            'id',
            'login',
            'first_name',
            'last_name',
            'date_joined',
            'last_login'
        );
        $pag->model_view = 'join_role';
        $pag->configure($list_display, $search_fields, $sort_fields);
        $pag->setFromRequest($request);
        return $pag->render_object();
    }
public static function find($request, $match)
    {
        $perm = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['role_id']);
        $pag = new Pluf_Paginator(new User_Account());
        $sql = new Pluf_SQL('user_role_id=%s', array(
            $perm->id
        ));
        $pag->forced_where = $sql;
        $pag->list_filters = array(
            'is_active',
            'login',
            'first_name',
            'last_name',
            'email'
        );
        $pag->sort_order = array(
            'id',
            'ASC'
        );
        $search_fields = array(
            'login',
            'first_name',
            'last_name',
            'email'
        );
        $list_display = array(
            'login' => __('login'),
            'first_name' => __('first name'),
            'last_name' => __('last name'),
            'email' => __('email')
        );
        $sort_fields = array(
            'id',
            'login',
            'first_name',
            'last_name',
            'date_joined',
            'last_login'
        );
        $pag->model_view = 'join_role';
        $pag->configure($list_display, $search_fields, $sort_fields);
        $pag->setFromRequest($request);
        return $pag->render_object();
    }
public static function find ( $ request , $ match ) { $ perm = Pluf_Shortcuts_GetObjectOr404 ( 'User_Role' , $ match [ 'role_id' ] ) ; $ pag = new Pluf_Paginator ( new User_Account ( ) ) ; $ sql = new Pluf_SQL ( 'user_role_id=%s' , array ( $ perm -> id ) ) ; $ pag -> forced_where = $ sql ; $ pag -> list_filters = array ( 'is_active' , 'login' , 'first_name' , 'last_name' , 'email' ) ; $ pag -> sort_order = array ( 'id' , 'ASC' ) ; $ search_fields = array ( 'login' , 'first_name' , 'last_name' , 'email' ) ; $ list_display = array ( 'login' => __ ( 'login' ) , 'first_name' => __ ( 'first name' ) , 'last_name' => __ ( 'last name' ) , 'email' => __ ( 'email' ) ) ; $ sort_fields = array ( 'id' , 'login' , 'first_name' , 'last_name' , 'date_joined' , 'last_login' ) ; $ pag -> model_view = 'join_role' ; $ pag -> configure ( $ list_display , $ search_fields , $ sort_fields ) ; $ pag -> setFromRequest ( $ request ) ; return $ pag -> render_object ( ) ; }
Returns list of users of a role.
Resulted list can be customized by using filters, conditions and sort rules.

@param Pluf_HTTP_Request $request
@param array $match
Returns list of users of a role . Resulted list can be customized by using filters conditions and sort rules .