Box\Brainy\Templates\Template::mustCompile PHP Метод

mustCompile() публичный Метод

It does compare the timestamps of template source and the compiled templates
public mustCompile ( ) : boolean
Результат boolean true if the template must be compiled
    public function mustCompile()
    {
        if (!$this->source->exists) {
            if ($this->parent instanceof Template) {
                $parent_resource = " in '{$this->parent}->template_resource}'";
            } else {
                $parent_resource = '';
            }
            throw new SmartyException("Unable to load template {$this->source->type} '{$this->source->name}'{$parent_resource}");
        }
        return $this->smarty->force_compile || $this->source->recompiled || $this->compiled->timestamp === false || $this->smarty->compile_check && $this->compiled->timestamp < $this->source->timestamp;
    }