本文整理汇总了PHP中Dwoo::getCompileDir方法的典型用法代码示例。如果您正苦于以下问题:PHP Dwoo::getCompileDir方法的具体用法?PHP Dwoo::getCompileDir怎么用?PHP Dwoo::getCompileDir使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dwoo
的用法示例。
在下文中一共展示了Dwoo::getCompileDir方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getCompiledFilename
/**
* returns the full compiled file name and assigns a default value to it if
* required
*
* @param Dwoo $dwoo the dwoo instance that requests the file name
* @return string the full path to the compiled file
*/
protected function getCompiledFilename(Dwoo $dwoo)
{
// no compile id was provided, set default
if ($this->compileId === null) {
$this->compileId = str_replace('../', '__', strtr($this->getResourceIdentifier(), '\\:', '/-'));
}
return $dwoo->getCompileDir() . $this->compileId . '.d' . Dwoo::RELEASE_TAG . '.php';
}
示例2: getCompiledFilename
/**
* returns the full compiled file name and assigns a default value to it if
* required
*
* @param Dwoo $dwoo the dwoo instance that requests the file name
* @return string the full path to the compiled file
*/
protected function getCompiledFilename(Dwoo $dwoo)
{
// no compile id was provided, set default
if ($this->compileId === null) {
$this->compileId = $this->name;
}
return $dwoo->getCompileDir() . $this->compileId . '.d' . Dwoo::RELEASE_TAG . '.php';
}