Пример #1
0
 public function __construct(\MtHaml\Environment $env = null)
 {
     if (empty($env->currentMoreEnv)) {
         parent::__construct();
     } else {
         $this->currentMoreEnv = $env->currentMoreEnv;
         $snipcaller = $this->currentMoreEnv['snipcallerNode'];
         if (empty($snipcaller)) {
             parent::__construct();
         } else {
             $this->parent = new SecondRoot($snipcaller);
         }
     }
     $this->env = $env;
 }
Пример #2
0
 public function __construct(\MtHaml\Environment $env = null)
 {
     parent::__construct();
     $this->env = $env;
 }