getCompiledTimestamp example

/** * Returns if the current config file must be compiled * * It does compare the timestamps of config source and the compiled config and checks the force compile configuration * * @return boolean true if the file must be compiled */
    public function mustCompile()
    {
        return $this->mustCompile === null ?
            $this->mustCompile = ($this->smarty->force_compile || $this->getCompiledTimestamp () === false || $this->smarty->compile_check && $this->getCompiledTimestamp () < $this->source->timestamp):
            $this->mustCompile;
    }

    /** * Returns the compiled config file * * It checks if the config file must be compiled or just read the compiled version * * @return string the compiled config file */
    public function getCompiledConfig()
    {
Home | Imprint | This part of the site doesn't use cookies.