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


PHP XmlParser::generateUniqID方法代码示例

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


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

示例1: loadDesign

 /**
  * Creates the initial document (root) of the page object and loads the initial template. If
  * no context was set before, the namespace of the initial template is taken instead.
  *
  * @param string $namespace namespace if the initial template
  * @param string $design (file)name if the initial template
  *
  * @author Christian Schäfer
  * @version
  * Version 0.1, 28.12.2006<br />
  * Version 0.2, 31.01.2007 (Now the context of the document is set)<br />
  * Version 0.3, 04.03.2007 (The namespace is taken as a context, if no other was set before)<br />
  * Version 0.4, 22.04.2007 (Now the language is applied to the document)<br />
  * Version 0.5, 08.03.2009 (Bug-fix: protected variable parentObject might not be used)<br />
  * Version 0.6, 27.06.2014 (Bug fix: ensure native environment for Document to allow expression-style place holders)<br />
  */
 public function loadDesign($namespace, $design)
 {
     $this->document = new Document();
     // set the current context
     $context = $this->getContext();
     if (empty($context)) {
         $this->document->setContext($namespace);
     } else {
         $this->document->setContext($context);
     }
     // set the current language
     $this->document->setLanguage($this->getLanguage());
     // load the design
     $this->document->setObjectId(XmlParser::generateUniqID());
     $this->document->loadDesign($namespace, $design);
     // ensure native APF environment
     $this->document->onParseTime();
     $this->document->onAfterAppend();
 }
开发者ID:GeneralCrime,项目名称:code,代码行数:35,代码来源:Page.php


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