本文整理匯總了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];
}