public function setModule($module) { if (strtolower($module) == 'admin' or strtolower($module) == 'site') { throw new Exception('O nomes de modulos "ADMIN" e "SITE" são reservados', 500); } else { parent::setModule($module); } }
public function __construct(array $params = array()) { parent::__construct($params); $db = \Cityware\Db\Factory::factory(); $this->setDbAdapter($db->getAdapter()); $this->fileFolder = new Filesystem(); $this->ormFolder = DATA_PATH . 'Orm' . DS; $this->oMetadata = new Metadata($this->getDbAdapter()); return $this; }