本文整理汇总了PHP中cache::_addDependencies方法的典型用法代码示例。如果您正苦于以下问题:PHP cache::_addDependencies方法的具体用法?PHP cache::_addDependencies怎么用?PHP cache::_addDependencies使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cache
的用法示例。
在下文中一共展示了cache::_addDependencies方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
function _addDependencies()
{
global $conf, $config_cascade;
$this->depends['age'] = isset($this->depends['age']) ? min($this->depends['age'], $conf['cachetime']) : $conf['cachetime'];
// parser cache file dependencies ...
$files = array($this->file, DOKU_INC . 'inc/parser/parser.php', DOKU_INC . 'inc/parser/handler.php');
$files = array_merge($files, getConfigFiles('main'));
// ... wiki settings
$this->depends['files'] = !empty($this->depends['files']) ? array_merge($files, $this->depends['files']) : $files;
parent::_addDependencies();
}
示例2: _addDependencies
protected function _addDependencies()
{
// parser cache file dependencies ...
$files = array($this->file, DOKU_INC . 'inc/parser/parser.php', DOKU_INC . 'inc/parser/handler.php');
$files = array_merge($files, getConfigFiles('main'));
// ... wiki settings
$this->depends['files'] = !empty($this->depends['files']) ? array_merge($files, $this->depends['files']) : $files;
parent::_addDependencies();
}
示例3: isset
function _addDependencies()
{
global $conf;
$this->depends['age'] = isset($this->depends['age']) ? min($this->depends['age'], $conf['cachetime']) : $conf['cachetime'];
// parser cache file dependencies ...
$files = array($this->file, DOKU_CONF . 'dokuwiki.php', DOKU_CONF . 'local.php', DOKU_INC . 'inc/parser/parser.php', DOKU_INC . 'inc/parser/handler.php');
$this->depends['files'] = !empty($this->depends['files']) ? array_merge($files, $this->depends['files']) : $files;
parent::_addDependencies();
}