Пример #1
0
 /**
  * Return an instance of the related model class
  * @return \ZeDb\ModelInterface
  */
 protected function getModel()
 {
     return Module::getDatabaseManager()->get(get_called_class());
 }
Пример #2
0
 /**
  * Get the registry instance that contains all the modules
  * @return \ZeDb\DatabaseManager
  */
 public function getDatabaseManager()
 {
     return ZeDb::getDatabaseManager();
 }