public function getByRole($role_id)
    {
        foreach ($this->getHandlers() as $filter) {
            if (in_array($role_id, (array) $filter['role_id'])) {
                return $filter;
            }
        }

        return array();
    }
public function getByRole($role_id)
    {
        foreach ($this->getHandlers() as $filter) {
            if (in_array($role_id, (array) $filter['role_id'])) {
                return $filter;
            }
        }

        return array();
    }
public function getByRole ( $ role_id ) { foreach ( $ this -> getHandlers ( ) as $ filter ) { if ( in_array ( $ role_id , ( array ) $ filter [ 'role_id' ] ) ) { return $ filter ; } } return array ( ) ; }
Returns a filter for the given user role ID
@param integer $role_id
@return array
Returns a filter for the given user role ID