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


PHP eZDebugSetting::changeLabel方法代码示例

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


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

示例1: addTimingPoint

 /**
  * Adds the timing point if the condition $conditionName is enabled.
  *
  * @param string $conditionName Name of the condition
  * @param string $label Optional label
  */
 static function addTimingPoint( $conditionName, $label = "" )
 {
     if ( !eZDebugSetting::isConditionTrue( $conditionName, eZDebug::LEVEL_TIMING_POINT ) )
         return false;
     eZDebug::addTimingPoint( eZDebugSetting::changeLabel( $conditionName, $label ) );
 }
开发者ID:sushilbshinde,项目名称:ezpublish-study,代码行数:12,代码来源:ezdebugsetting.php

示例2: processNewElements

 function processNewElements($createdElements)
 {
     $debug = eZDebugSetting::isConditionTrue('kernel-datatype-ezxmltext', eZDebug::LEVEL_DEBUG);
     // Call handlers for newly created elements
     foreach ($createdElements as $element) {
         if ($debug) {
             eZDebug::writeDebug('processing new element ' . $element->nodeName, eZDebugSetting::changeLabel('kernel-datatype-ezxmltext'));
         }
         $tmp = null;
         if (!$this->processBySchemaPresence($element)) {
             if ($debug) {
                 eZDebug::writeDebug($this->Document->saveXML(), eZDebugSetting::changeLabel('kernel-datatype-ezxmltext', 'xml string after failed processBySchemaPresence for new element ' . $element->nodeName));
             }
             continue;
         }
         if ($debug) {
             eZDebug::writeDebug($this->Document->saveXML(), eZDebugSetting::changeLabel('kernel-datatype-ezxmltext', 'xml string after processBySchemaPresence for new element ' . $element->nodeName));
         }
         // Call "Structure handler"
         $this->callOutputHandler('structHandler', $element, $tmp);
         if (!$this->processBySchemaTree($element)) {
             if ($debug) {
                 eZDebug::writeDebug($this->Document->saveXML(), eZDebugSetting::changeLabel('kernel-datatype-ezxmltext', 'xml string after failed processBySchemaTree for new element ' . $element->nodeName));
             }
             continue;
         }
         if ($debug) {
             eZDebug::writeDebug($this->Document->saveXML(), eZDebugSetting::changeLabel('kernel-datatype-ezxmltext', 'xml string after processBySchemaTree for new element ' . $element->nodeName));
         }
         $tmp2 = null;
         // Call "Publish handler"
         $this->callOutputHandler('publishHandler', $element, $tmp2);
         if ($debug) {
             eZDebug::writeDebug($this->Document->saveXML(), eZDebugSetting::changeLabel('kernel-datatype-ezxmltext', 'xml string after callOutputHandler publishHandler for new element ' . $element->nodeName));
         }
         // Process attributes according to the schema
         if ($element->hasAttributes()) {
             if (!$this->XMLSchema->hasAttributes($element)) {
                 eZXMLInputParser::removeAllAttributes($element);
             } else {
                 $this->processAttributesBySchema($element);
             }
         }
     }
 }
开发者ID:jordanmanning,项目名称:ezpublish,代码行数:45,代码来源:ezxmlinputparser.php

示例3: inputXML

 function inputXML()
 {
     $contentObjectAttribute = $this->ContentObjectAttribute;
     $contentObjectAttributeID = $contentObjectAttribute->attribute('id');
     $originalInput = 'originalInput_' . $contentObjectAttributeID;
     $isInputValid = 'isInputValid_' . $contentObjectAttributeID;
     if (isset($GLOBALS[$isInputValid]) and $GLOBALS[$isInputValid] == false) {
         $output = $GLOBALS[$originalInput];
     } else {
         $dom = new DOMDocument('1.0', 'utf-8');
         $success = $dom->loadXML($this->XMLData);
         $editOutput = new eZSimplifiedXMLEditOutput();
         $dom->formatOutput = true;
         if (eZDebugSetting::isConditionTrue('kernel-datatype-ezxmltext', eZDebug::LEVEL_DEBUG)) {
             eZDebug::writeDebug($dom->saveXML(), eZDebugSetting::changeLabel('kernel-datatype-ezxmltext', __METHOD__ . ' xml string stored in database'));
         }
         $output = $editOutput->performOutput($dom);
     }
     return $output;
 }
开发者ID:odnarb,项目名称:ezpublish-legacy,代码行数:20,代码来源:ezsimplifiedxmlinput.php


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