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