コード例 #1
0
 /**
  * @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);
 }
コード例 #2
0
 /**
  * @param string $name
  * @param int    $time
  *
  * @return bool
  */
 public function isFresh($name, $time)
 {
     return !(bool) $this->twiggy->getOption('debug', $this->twiggy->config, false, true);
 }