当前位置: 首页>>代码示例>>PHP>>正文


PHP DOMDocument::__construct方法代码示例

本文整理汇总了PHP中DOMDocument::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP DOMDocument::__construct方法的具体用法?PHP DOMDocument::__construct怎么用?PHP DOMDocument::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DOMDocument的用法示例。


在下文中一共展示了DOMDocument::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct('1.0', 'UTF-8');
     $this->formatOutput = true;
     $this->rootElement = $this->createElement('testsuites');
     $this->appendChild($this->rootElement);
 }
开发者ID:ryanaslett,项目名称:junit-xml,代码行数:7,代码来源:Document.php

示例2: __construct

 public function __construct($text)
 {
     parent::__construct();
     $this->preserveWhiteSpace = false;
     $this->LoadXML($text);
     $this->formatOutput = true;
 }
开发者ID:csev,项目名称:tsugi-php,代码行数:7,代码来源:TsugiDOM.php

示例3: __construct

 public function __construct()
 {
     parent::__construct('1.0', 'UTF-8');
     $this->preserveWhiteSpace = false;
     $this->formatOutput = true;
     return $this;
 }
开发者ID:floatla,项目名称:ModLayer-Docs,代码行数:7,代码来源:xmldom.php

示例4: __construct

	public function __construct($data, $version = null, $encoding = null)
	{
		parent::__construct($version, $encoding);
		$this->registerNodeClass('DOMDocument', 'JS_Extractor');
		$this->registerNodeClass('DOMElement', 'JS_Extractor_Element');
		@$this->loadHTML($data);
	}
开发者ID:kevinreilly,项目名称:mendelements.com,代码行数:7,代码来源:Extractor.php

示例5: __construct

 public function __construct($version = '1.0', $encoding = 'utf-8')
 {
     parent::__construct($version, $encoding);
     $this->registerNodeClass('DOMAttr', 'Libs\\DOM\\Attribute');
     $this->registerNodeClass('DOMDocument', 'Libs\\DOM\\Document');
     $this->registerNodeClass('DOMElement', 'Libs\\DOM\\Element');
 }
开发者ID:psychoticmeowAffliction,项目名称:affliction,代码行数:7,代码来源:document.php

示例6: __construct

 /**
  * Constructor de la clase.
  *
  * @access public
  * @param  string  $xml  (la ruta del archivo XML)
  */
 public function __construct($xml = null)
 {
     parent::__construct('1.0', 'utf-8');
     if ($this->load($xml) === true) {
         $this->carga = true;
     }
 }
开发者ID:njmube,项目名称:ConsultaCFDIService,代码行数:13,代码来源:LecturaXML.php

示例7: __construct

 /**
  * 构造函数
  * @param string $fileName xml文件名
  * @param bool $isSax 是否存储成SimpleXMLElement对象
  */
 public function __construct($fileName = '', $isSax = true, $version = '1.0', $encoding = 'utf-8')
 {
     parent::__construct($version, $encoding);
     $this->fileName = $fileName;
     $this->isSax = $isSax;
     $this->fileName && $this->loadFromFile();
 }
开发者ID:a4m,项目名称:go1den-express,代码行数:12,代码来源:Xml.class.php

示例8: __construct

 /**
  * @param string $version
  * @param string $encoding
  */
 public function __construct($version = '1.0', $encoding = 'UTF-8')
 {
     parent::__construct($version, $encoding);
     foreach ($this->_classes as $superClass => $className) {
         $this->registerNodeClass($superClass, __NAMESPACE__ . $className);
     }
 }
开发者ID:fluentdom,项目名称:fluentdom,代码行数:11,代码来源:Document.php

示例9: __construct

 /**
  * Creates the <salesinvoice> element and adds it to the property
  * salesInvoicesElement
  * 
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     // Make the main wrap element
     $this->salesInvoicesElement = $this->createElement('salesinvoices');
     $this->appendChild($this->salesInvoicesElement);
 }
开发者ID:japaveh,项目名称:twinfield,代码行数:13,代码来源:InvoicesDocument.php

示例10: __construct

 public function __construct($version = null, $encoding = null)
 {
     parent::__construct($version, $encoding);
     $this->registerNodeClass('DOMText', 'DOMWrap\\Text');
     $this->registerNodeClass('DOMElement', 'DOMWrap\\Element');
     $this->registerNodeClass('DOMComment', 'DOMWrap\\Comment');
 }
开发者ID:vladshut,项目名称:php-dom-wrapper,代码行数:7,代码来源:Document.php

示例11: __construct

 public function __construct($version = '1.0', $encoding = 'utf-8')
 {
     parent::__construct($version, $encoding);
     $this->preserveWhitespace = false;
     $this->formatOutput = false;
     $this->_errorLog = array();
 }
开发者ID:pointybeard,项目名称:forking-server-framework,代码行数:7,代码来源:class.xmldocument.php

示例12: __construct

 public function __construct()
 {
     parent::__construct('1.0', 'utf-8');
     $this->registerNodeClass('DOMElement', 'app\\modules\\yiipass\\services\\KeepassXGroup');
     $db = $this->createElement('database');
     $this->appendChild($db);
     $this->db = $db;
 }
开发者ID:jepster,项目名称:yiipass,代码行数:8,代码来源:KeepassXDbDoc.php

示例13: uniqid

 function __construct()
 {
     $this->sessionid = uniqid();
     parent::__construct('1.0', 'UTF-8');
     $this->formatOutput = true;
     //$this->standalone = false;
     #$this->validateOnParse = true;
 }
开发者ID:metaregistrar,项目名称:php-epp-client,代码行数:8,代码来源:eppRequest.php

示例14: __construct

 /**
  * Creates a new response xml document to iterate
  * through its resource properties
  * @param string $xml_response_string
  */
 public function __construct($xml_response_string)
 {
     parent::__construct(self::XML_VERSION, self::XML_ENCODING);
     $this->loadXML($xml_response_string);
     if ($this->success() === true) {
         $this->__resourceNodeList = $this->getElementsByTagName('resourceDescriptor');
     }
 }
开发者ID:philippjenni,项目名称:icinga-web,代码行数:13,代码来源:JasperResponseXmlDoc.class.php

示例15: __construct

 /**
  * constructor
  * set up an Atom_Element instance
  *
  * @param string $tagName
  * @example 
  * $feed = new Atom_Element('feed') 
  * is similar to
  * $feed = new DOMDocument;
  * $feed->appendChild(new DOMElement('feed'))
  * @access public 
  */
 public function __construct($tagName='')
 {
     parent::__construct();
     if($tagName!='' && $tagName!=null)
     {
         $this->appendChild(new DOMElement($tagName));
     }
 }
开发者ID:krispouille,项目名称:xml_atom,代码行数:20,代码来源:Element.php


注:本文中的DOMDocument::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。