function __construct() { parent::__construct('greeting'); $this->svID = $this->createElement('svID'); $this->body->appendChild($this->svID); $this->svDate = $this->createElement('svDate'); $this->body->appendChild($this->svDate); $this->svcMenu = $this->createElement('svcMenu'); $this->body->appendChild($this->svcMenu); $this->dcp = $this->createElement('dcp'); $this->body->appendChild($this->dcp); }
function __construct($command, $type) { $this->type = $type; $command = strtolower($command); if (!in_array($command, array('check', 'info', 'create', 'update', 'delete', 'renew', 'transfer', 'poll', 'login', 'logout'))) { trigger_error("Invalid argument value '{$command}' for \$command", E_USER_ERROR); } parent::__construct('command'); $this->command = $this->createElement($command); $this->body->appendChild($this->command); $this->payload = $this->createElementNS(Net_EPP_ObjectSpec::xmlns($this->type), $this->type . ':' . $command); $this->command->appendChild($this->payload); $this->clTRID = $this->createElement('clTRID'); $this->clTRID->appendChild($this->createTextNode()); $this->body->appendChild($this->clTRID); }
function __construct() { parent::__construct('response'); }
function __construct() { parent::__construct('hello'); $this->command = 'hello'; }
function __construct() { parent::__construct('hello'); }