コード例 #1
0
ファイル: Tpl.php プロジェクト: arhone/cmf
 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');
 }
コード例 #2
0
ファイル: Tpl.php プロジェクト: AlekseyArh/cmf
 /**
  * Устанавливает главные переменные
  * @param array $data
  * @return void
  */
 public function setVariable(array $data = [])
 {
     self::$variable = array_merge(self::$variable, $data);
 }