本文整理汇总了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 ) );
}
示例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);
}
}
}
}
示例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;
}