Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @param string $path
  */
 public function __construct($path, $sharedItem, $isLink = false)
 {
     parent::__construct($sharedItem->getPath());
     $this->linkPath = $path;
     $this->sharedItem = $sharedItem;
     $this->isLink = $isLink;
 }
Ejemplo n.º 2
0
 public function __construct(API $base, $path, $webpath)
 {
     parent::__construct($base, $path);
     require_once 'Twig/Autoloader.php';
     $this->webpath = $webpath;
     $settings = $this->base->debug() ? [] : ['cache' => $this->base->cachePath()];
     try {
         \Twig_Autoloader::register();
         $this->loader = new \Twig_Loader_Filesystem($path);
         $this->twig = new \Twig_Environment($this->loader, []);
     } catch (\Twig_Error_Loader $e) {
         throw new TemplateException($e);
     }
 }
Ejemplo n.º 3
0
 public function __construct($path, $name)
 {
     parent::__construct($path);
     $this->name = $name;
 }