public function unregister($name = null, $namespace = false)
    {
        if (null === $name) {
            $name = $this->getName();
        }

        $url = UrlHelper::buildUrl(Urls::URL_AQL_USER_FUNCTION, [$name]);

        if ($namespace) {
            $url = UrlHelper::appendParamsUrl($url, ['group' => true]);
        }

        $response = $this->_connection->delete($url);

        return $response->getJson();
    }
public function unregister($name = null, $namespace = false)
    {
        if (null === $name) {
            $name = $this->getName();
        }

        $url = UrlHelper::buildUrl(Urls::URL_AQL_USER_FUNCTION, [$name]);

        if ($namespace) {
            $url = UrlHelper::appendParamsUrl($url, ['group' => true]);
        }

        $response = $this->_connection->delete($url);

        return $response->getJson();
    }
public function unregister ( $ name = null , $ namespace = false ) { if ( null === $ name ) { $ name = $ this -> getName ( ) ; } $ url = UrlHelper :: buildUrl ( Urls :: URL_AQL_USER_FUNCTION , [ $ name ] ) ; if ( $ namespace ) { $ url = UrlHelper :: appendParamsUrl ( $ url , [ 'group' => true ] ) ; } $ response = $ this -> _connection -> delete ( $ url ) ; return $ response -> getJson ( ) ; }
Un-register the user function

If no parameter ($name) is passed, it will use the property of the object.

If $name is passed, it will override the object's property with the passed one

@param string  $name
@param boolean $namespace

@throws Exception throw exception if the request fails

@return mixed true if successful without a return value or the return value if one was set in the action
Un - register the user function