Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #3
0
 public function setFile($file)
 {
     if (!Files::exists($file)) {
         throw new Exception('Arquivo de menu não encontrado: ' . $file);
     }
     $this->_file = $file;
 }
Beispiel #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;
 }