Пример #1
0
 protected function setEntities($file)
 {
     if (!Files::exists($file)) {
         throw new Exception('Arquivo de entidades não encontrado: ' . $file);
     }
     $this->_entities = Files::get_return($file);
 }
Пример #2
0
 public function addFile($file, $placeholder = null)
 {
     if (!Files::exists($file)) {
         throw new \Exception('View não encontrada: ' . $file);
     }
     $this->_files[] = array('file' => $file, 'placeholder' => $placeholder);
 }
Пример #3
0
 public function add_config_files(array $config_files)
 {
     $config_files = array_reverse($config_files);
     foreach ($config_files as $file) {
         $vars = Files::get_return($file);
         if (is_array($vars)) {
             $this->_defines = array_merge($this->_defines, $vars);
         }
     }
 }
Пример #4
0
 public function __construct($config)
 {
     if (!Files::exists($config)) {
         throw new Exception('Arquivo de assets não encontrado.');
     }
     $vars = Files::get_return($config);
     if (!is_array($vars)) {
         throw new Exception('Arquivo de assets inválido.');
     }
     $this->_assets = $vars;
     $this->_assetsFile = $config;
 }
Пример #5
0
 protected function setMenuArray()
 {
     $this->_menu_array = Files::get_return($this->_file);
 }