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


PHP Helpers::debugError方法代码示例

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


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

示例1: loadClass

 public static function loadClass($id, $class_path, $class_name)
 {
     if (self::isModuleLoaded($id)) {
         return false;
     }
     if (!file_exists($class_path)) {
         Helpers::debugError('FrontendModules: Class file not found (' . $class_name . ' doesn\'t exist)!');
         return false;
     }
     require_once $class_path;
     if (!class_exists($class_name)) {
         Helpers::debugError('FrontendModules: Class not found (class "' . $class_name . '" doesn\'t exist in ' . $class_path . ')!');
     }
     $module = new $class_name();
     self::$modules[$id] = $module;
     return $module;
 }
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:17,代码来源:FrontendModules.php

示例2: smarty_function_module

function smarty_function_module($params, Smarty_Internal_Template $template)
{
    $output = '';
    if (isset($params['id'])) {
        $module_id = $params['id'];
        if (FrontendModules::isModuleLoaded($module_id)) {
            $module = FrontendModules::getInstanceOf($module_id);
            $output = $module->output($params, $template);
            if ($output === null) {
                $output = '';
            }
        } else {
            Helpers::debugError('Smarty plugin function.module.php: frontend module with ID "' . $module_id . '" was not loaded.');
        }
    } else {
        Helpers::debugError('Smarty plugin function.module.php: parameter "id" is missing.');
    }
    return $output;
}
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:19,代码来源:function.module.php

示例3: error

 protected static function error($function)
 {
     $message = $function . ' could not succeed.';
     if (function_exists("error_get_last")) {
         $info = error_get_last();
         $message .= ' Error-Message: ' . $info['message'];
     }
     switch (self::$error_mode) {
         case self::ERROR_MODE_DEBUG:
             Helpers::debugError($message);
             break;
         case self::ERROR_MODE_FATAL:
             Helpers::fatalError($message);
             break;
         case self::ERROR_MODE_SILENT:
             break;
         default:
             break;
     }
 }
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:20,代码来源:FileUtils.php

示例4: loadClass

 public static function loadClass($class_path, $class_name)
 {
     if (self::isPluginRegistered($class_name)) {
         return false;
     }
     if (!file_exists($class_path)) {
         Helpers::debugError('RegisterPlugin: Class file not found (' . $class_name . ' doesn\'t exist)!');
         return false;
     }
     require_once $class_path;
     if (!class_exists($class_name)) {
         Helpers::debugError('RegisterPlugin: Class not found (class "' . $class_name . '" doesn\'t exist in ' . $class_path . ')!');
     }
     $plugin = new $class_name();
     $hooks = $plugin->register();
     if (is_array($hooks)) {
         if (count($hooks) > 0) {
             foreach ($hooks as $hook) {
                 if (isset($hook['hookId']) && isset($hook['methodName'])) {
                     if (!method_exists($plugin, $hook['methodName'])) {
                         Helpers::debugError('RegisterPlugin: class method not found (class-method "' . $hook['methodName'] . '" doesn\'t exist in class "' . $class_name . '")!');
                         return false;
                     }
                     self::registerHook($hook['hookId'], $class_name, $hook['methodName']);
                 }
             }
             self::$registeredPlugins[$class_name] = array('className' => $class_name, 'classInstance' => new $class_name(), 'hooks' => $hooks);
         } else {
             return false;
         }
     } else {
         return false;
     }
     return true;
 }
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:35,代码来源:Plugins.php

示例5: apply

 public static function apply($modifier_id, &$data, $structure, $parameters)
 {
     if (self::isModifierLoaded($modifier_id)) {
         $modifier = self::getInstanceOf($modifier_id);
         $modifier->apply($data, $structure, $parameters);
     } else {
         Helpers::debugError('DataModifiers: A modifier with the ID "' . $modifier_id . '" was not loaded.');
     }
 }
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:9,代码来源:DataModifiers.php

示例6: getArray

 public function getArray($language_id = null, $smarty = null, $parameters = null)
 {
     // Wenn keine Sprache angegeben, Standard-Sprache annehmen
     if ($language_id === null) {
         $language_id = Config::get()->languages->standard;
     }
     // Die "rohen" Daten laden
     $input = $this->getArrayRaw();
     $output = null;
     if ($input !== null) {
         // Seiten-Eigenschaften laden
         $page_id = $this->loaded_page_id;
         $page_properties = $this->pages->getProperties($page_id);
         if ($page_properties === false) {
             return null;
         }
         // Daten-Struktur für diese Seite laden
         $pages_structure = DataStructure::pagesArray();
         if (!isset($pages_structure[$page_properties['template-id']]['structure'])) {
             Helpers::debugError('A page template with the ID "' . $page_properties['template-id'] . '" does not exist!');
             return null;
         }
         $page_structure = $pages_structure[$page_properties['template-id']]['structure'];
         // Der Pfad zu den zugehörigen Dateien (Bilder) einer Seite unterscheiden sich
         // je nachdem, ob die veröffentlichte oder die editierte Version der Seite angefragt wurde
         if ($this->isPublished()) {
             $page_files = $this->pages->getPageFilesPublishedFolder($page_id, $page_properties);
             $page_files_url = $this->pages->getPageFilesPublishedUrl($page_id, $page_properties);
         } else {
             $page_files = $this->pages->getPageFilesEditFolder($page_id, $page_properties);
             $page_files_url = $this->pages->getPageFilesEditUrl($page_id, $page_properties);
         }
         $page_url = $this->pages->getPageUrl($page_id, $language_id, $page_properties);
         // Die Parameter für die Plugins und Modifikatoren zusammenstellen
         // ggf. werden einige oder alle dieser Parameter über die Variable $parameters
         // wieder überschrieben
         if (!is_array($parameters)) {
             $parameters = array();
         }
         $standard_parameters = array('preview' => !$this->isPublished(), 'pageId' => $page_id, 'languageId' => $language_id, 'templateId' => $page_properties['template-id'], 'uniqueId' => $page_properties['unique-id'], 'pageUrl' => $page_url, 'pageFiles' => $page_files, 'pageFilesUrl' => $page_files_url);
         if ($smarty !== null) {
             $standard_parameters['smarty'] = $smarty;
         }
         $parameters = array_merge($standard_parameters, $parameters);
         // Das Ausgabe-Array wird ggf. durch Plugins und
         // höchstwahrscheinlich durch die Modifikatoren geändert
         $output = $input;
         if ($smarty !== null) {
             $this->pages->applyPluginsToDataFields(Plugins::ASSIGN_PAGE_DATA_FIELD, $parameters, $output, $page_properties);
         }
         DataModifiers::applyAll($output, $page_structure, $parameters);
     }
     return $output;
 }
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:54,代码来源:PageContent.php


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