Prado\Xml\TXmlElement::__construct PHP Method

__construct() public method

Constructor.
public __construct ( $tagName )
    public function __construct($tagName)
    {
        $this->setTagName($tagName);
    }

Usage Example

Example #1
0
 /**
  * Constructor.
  * @param string version of this XML document
  * @param string encoding of this XML document
  */
 public function __construct($version = '1.0', $encoding = '')
 {
     parent::__construct('');
     $this->setVersion($version);
     $this->setEncoding($encoding);
 }