Api/Odr.php
/**
     * Registers new domain
     *
     * @param string|array $domainName Either domain name as string or whole request data as array (must have 'domain_name' key)
     * @param array        $data       Data for new domain. Only usable if $domainName is a string
     *
     * @return Api_Odr
     *
     * @throws Api_Odr_Exception
     */
Registers new domain
@param string|array $domainName Either domain name as string or whole request data as array (must have 'domain_name' key)
@param array        $data       Data for new domain. Only usable if $domainName is a string




Registers new domain @param string|array $domainName Either domain name as string or whole request data as array ( must have ' domain_name ' key ) @param array $data Data for new domain . Only usable if $domainName is a string
public function registerDomain($domainName, array $data)
    {
        if (is_array($domainName) && count($data) === 0) {
            $data = $domainName;
            $domainName = null;
        }
        if ((!is_string($domainName) || $domainName === '') && array_key_exists('domain_name', $data) === false) {
            throw new Api_Odr_Exception('No domain name defined');
        }
        if (!is_string($domainName) || $domainName === '') {
            $domainName = $data['domain_name'];
        }
        $this->_execute('/domain/' . $domainName . '/', self::METHOD_POST, $data);
        return $this;
    }
public function registerDomain ( $ domainName , array $ data ) { if ( is_array ( $ domainName ) && count ( $ data ) === 0 ) { $ data = $ domainName ; $ domainName = null ; } if ( ( ! is_string ( $ domainName ) || $ domainName === '' ) && array_key_exists ( 'domain_name' , $ data ) === false ) { throw new Api_Odr_Exception ( 'No domain name defined' ) ; } if ( ! is_string ( $ domainName ) || $ domainName === '' ) { $ domainName = $ data [ 'domain_name' ] ; } $ this -> _execute ( '/domain/' . $ domainName . '/' , self :: METHOD_POST , $ data ) ; return $ this ; }
Registers new domain
 @param string|array $domainName Either domain name as string or whole request data as array (must have 'domain_name' key)
 @param array        $data       Data for new domain.
Registers new domain @param string|array $domainName Either domain name as string or whole request data as array ( must have ' domain_name ' key ) @param array $data Data for new domain .
// If you want to pass data directly as part of request, you can uncomment following lines: /*
        if (empty($data)) {
            $data = $_REQUEST;
        }
        */