/** * Constructs a new object of Opt_Xml_Text. The first argument may be * used to initialize the first Opt_Xml_Cdata node. * * @param String $cdata The optional text to initialize the Opt_Xml_Cdata. */ public function __construct($cdata = null) { parent::__construct(); if (!is_null($cdata)) { $this->appendData($cdata); } }
/** * Creates a new XML tag with the specified name. The accepted * name format is 'name' or 'namespace:name'. * * @param String $name The tag name. */ public function __construct($name) { parent::__construct(); $this->setName($name); }
/** * Constructs the root node. */ public function __construct() { parent::__construct(); }