/** * Model initializer. */ protected function init() { $this->_db = DBManager::Instance()->getDefault(); $this->_dbprefix = $this->_db->prefix(); }
protected function init() { $this->_db = DBManager::Instance()->getDefault(); $this->_dbprefix = $this->_db->prefix(); $this->_permissionsFactory = $this->representation->permissions(false, 'TooBasic\\UsersManagement'); $this->_rolesFactory = $this->representation->roles(false, 'TooBasic\\UsersManagement'); }
/** * Manager initialized. */ protected function init() { parent::init(); // // Database shortcuts. $this->_db = DBManager::Instance()->getDefault(); $this->_dbprefix = $this->_db->prefix(); // // Log shortcuts and initializtions. /** @fixme the workflow name should be un a 'defined()' constant. */ $this->_log = $this->log->startLog('workflows'); $this->_log->separator(); }