public function getPermissions()
    {
        $permissions = &gplcart_static('user.role.permissions');

        if (isset($permissions)) {
            return $permissions;
        }

        $permissions = (array) gplcart_config_get(GC_FILE_CONFIG_PERMISSION);
        asort($permissions);

        $this->hook->attach('user.role.permissions', $permissions, $this);
        return $permissions;
    }
public function getPermissions()
    {
        $permissions = &gplcart_static('user.role.permissions');

        if (isset($permissions)) {
            return $permissions;
        }

        $permissions = (array) gplcart_config_get(GC_FILE_CONFIG_PERMISSION);
        asort($permissions);

        $this->hook->attach('user.role.permissions', $permissions, $this);
        return $permissions;
    }
public function getPermissions ( ) { $ permissions = & gplcart_static ( 'user.role.permissions' ) ; if ( isset ( $ permissions ) ) { return $ permissions ; } $ permissions = ( array ) gplcart_config_get ( GC_FILE_CONFIG_PERMISSION ) ; asort ( $ permissions ) ; $ this -> hook -> attach ( 'user.role.permissions' , $ permissions , $ this ) ; return $ permissions ; }
Returns an array of all defined permissions
@return array
Returns an array of all defined permissions