本文整理汇总了PHP中Zikula_View::_trigger_fatal_error方法的典型用法代码示例。如果您正苦于以下问题:PHP Zikula_View::_trigger_fatal_error方法的具体用法?PHP Zikula_View::_trigger_fatal_error怎么用?PHP Zikula_View::_trigger_fatal_error使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zikula_View
的用法示例。
在下文中一共展示了Zikula_View::_trigger_fatal_error方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load
/**
* Resource function to load a resource located inside the plugins folders.
*
* @param Zikula_View $view Reference to Smarty instance.
* @param string $type Type of the resource.
* @param string $name Name of the resource.
*
* @access private
* @return boolean
*/
public static function load($view, $type, $name)
{
if (isset(self::$cache[$type][$name])) {
return self::$cache[$type][$name];
}
self::$cache[$type][$name] = false;
foreach ((array) $view->plugins_dir as $_plugin_dir) {
$filepath = "{$_plugin_dir}/{$type}.{$name}.php";
if (@is_readable($filepath)) {
include_once $filepath;
if (!function_exists("smarty_{$type}_{$name}")) {
$view->_trigger_fatal_error(__f('[View %1$s] \'%2$s\' is not implemented', array($type, $name)), null, null, __FILE__, __LINE__);
return false;
}
self::$cache[$type][$name] = true;
break;
}
}
return self::$cache[$type][$name];
}