function __construct(Cache $Cache, Translate $Translate, array $config = []) { $this->Cache = $Cache; $this->Translate = $Translate; $this->mergeConfig($config); self::$hash = $this->Cache->get('arh.tpl.hash'); }
/** * Устанавливает главные переменные * @param array $data * @return void */ public function setVariable(array $data = []) { self::$variable = array_merge(self::$variable, $data); }