/** * @param Twiggy $Twiggy */ public function __construct(Twiggy &$Twiggy) { $this->twiggy =& $Twiggy; $this->modx =& $Twiggy->modx; $paths = $this->twiggy->explodeAndClean($this->twiggy->getOption('path_templates', null, '', true)); $this->setPaths($paths); }
/** * @param string $name * @param int $time * * @return bool */ public function isFresh($name, $time) { return !(bool) $this->twiggy->getOption('debug', $this->twiggy->config, false, true); }