public static function find($request, $match)
    {
        $pag = new Pluf_Paginator(new User_Role());
        $pag->list_filters = array(
            'name',
            'code_name',
            'application'
        );
        $search_fields = array(
            'name',
            'code_name',
            'description',
            'application'
        );
        $sort_fields = array(
            'id',
            'name',
            'code_name',
            'application',
            'description'
        );
        $pag->forced_where = new Pluf_SQL('user_group_id=%s', array(
            $match['group_id']
        ));
        $pag->configure(array(), $search_fields, $sort_fields);
        $pag->setFromRequest($request);
        $pag->model_view = 'join_group';
        return $pag->render_object();
    }
public static function find($request, $match)
    {
        $pag = new Pluf_Paginator(new User_Role());
        $pag->list_filters = array(
            'name',
            'code_name',
            'application'
        );
        $search_fields = array(
            'name',
            'code_name',
            'description',
            'application'
        );
        $sort_fields = array(
            'id',
            'name',
            'code_name',
            'application',
            'description'
        );
        $pag->forced_where = new Pluf_SQL('user_group_id=%s', array(
            $match['group_id']
        ));
        $pag->configure(array(), $search_fields, $sort_fields);
        $pag->setFromRequest($request);
        $pag->model_view = 'join_group';
        return $pag->render_object();
    }
public static function find ( $ request , $ match ) { $ pag = new Pluf_Paginator ( new User_Role ( ) ) ; $ pag -> list_filters = array ( 'name' , 'code_name' , 'application' ) ; $ search_fields = array ( 'name' , 'code_name' , 'description' , 'application' ) ; $ sort_fields = array ( 'id' , 'name' , 'code_name' , 'application' , 'description' ) ; $ pag -> forced_where = new Pluf_SQL ( 'user_group_id=%s' , array ( $ match [ 'group_id' ] ) ) ; $ pag -> configure ( array ( ) , $ search_fields , $ sort_fields ) ; $ pag -> setFromRequest ( $ request ) ; $ pag -> model_view = 'join_group' ; return $ pag -> render_object ( ) ; }
Returns list of roles of a group.
Returned list can be customized with some filter, condition and sort.

@param Pluf_HTTP_Request $request
@param array $match
Returns list of roles of a group . Returned list can be customized with some filter condition and sort .