protected function getPermissionsUserRole($chunked = false)
    {
        $permissions = $this->role->getPermissions();
        return $chunked ? gplcart_array_split($permissions, 3) : $permissions;
    }
protected function getPermissionsUserRole($chunked = false)
    {
        $permissions = $this->role->getPermissions();
        return $chunked ? gplcart_array_split($permissions, 3) : $permissions;
    }
protected function getPermissionsUserRole ( $ chunked = false ) { $ permissions = $ this -> role -> getPermissions ( ) ; return $ chunked ? gplcart_array_split ( $ permissions , 3 ) : $ permissions ; }
Returns an array of permissions
@param bool $chunked
@return array
Returns an array of permissions