public function getLimit($user_id)
    {
        if (is_numeric($user_id)) {
            $user = $this->user->get($user_id);
            if (isset($user['role_id'])) {
                return $this->getLimitByRole($user['role_id']);
            }
        }

        return $this->getDefaultLimit();
    }
public function getLimit($user_id)
    {
        if (is_numeric($user_id)) {
            $user = $this->user->get($user_id);
            if (isset($user['role_id'])) {
                return $this->getLimitByRole($user['role_id']);
            }
        }

        return $this->getDefaultLimit();
    }
public function getLimit ( $ user_id ) { if ( is_numeric ( $ user_id ) ) { $ user = $ this -> user -> get ( $ user_id ) ; if ( isset ( $ user [ 'role_id' ] ) ) { return $ this -> getLimitByRole ( $ user [ 'role_id' ] ) ; } } return $ this -> getDefaultLimit ( ) ; }
Returns a max number of items for the user
@param integer|string $user_id
@return integer
Returns a max number of items for the user