/** * Constructor * */ public function __construct() { parent::__construct(); $this->formresult = new Node('formresult', null, ['serial' => time(), 'tz' => date('Z'), 'xmlns:xsd' => 'http://www.w3.org/2001/XMLSchema', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance']); $this->withRoot($this->formresult); $this->formvalues = $this->formresult->addChild(new Node('formvalues')); $this->formerrors = $this->formresult->addChild(new Node('formerrors')); }
/** * Constructor * */ public function __construct() { parent::__construct('rdf:RDF'); $this->root()->setAttribute('xmlns:rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'); $this->root()->setAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); $this->root()->setAttribute('xmlns', 'http://purl.org/rss/1.0/'); $this->channel = new \stdClass(); $this->image = new \stdClass(); $this->items = []; }
/** * Constructor * * @param string rootName default 'document' */ public function __construct($rootName = 'document') { parent::__construct($rootName); $this->nodeType = 'webservices\\soap\\xp\\XPSoapNode'; }
/** * Constructor. * */ public function __construct() { parent::__construct('wddxPacket'); $this->root()->setAttribute('version', '1.0'); }