示例#1
0
 /**
  * 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);
     }
 }
示例#2
0
 /**
  * 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);
 }
示例#3
0
 /**
  * Constructs the root node.
  */
 public function __construct()
 {
     parent::__construct();
 }