/** * Compiles the specified template and returns the current * time. * * @internal * @param String $filename The file name. * @return Integer */ public function _compile($filename) { $compiled = $this->_tpl->getInflector()->getCompiledPath($filename, $this->_inheritance); $compiler = $this->_tpl->getCompiler(); $compiler->setInheritance($this->_inheritance); $compiler->setFormatList(array_merge($this->_formatInfo, self::$_globalFormatInfo)); $compiler->set('branch', $this->_branch); $compiler->compile($this->_tpl->_getSource($filename), $filename, $compiled, $this->_mode); return time(); }