Esempio n. 1
0
 /**
  * Return an instance of the related model class
  * @return \ZeDb\ModelInterface
  */
 protected function getModel()
 {
     return Module::getDatabaseManager()->get(get_called_class());
 }
Esempio n. 2
0
File: Model.php Progetto: pixlr/ZeDb
 /**
  * Get the registry instance that contains all the modules
  * @return \ZeDb\DatabaseManager
  */
 public function getDatabaseManager()
 {
     return ZeDb::getDatabaseManager();
 }