public static getInstance ( $self = null ) : |
||
Résultat | static instance of record manager. |
function __construct() { if (!class_exists("TActiveRecordManager", false)) { throw new Exception("You need to enable the ActiveRecord module in your application configuration file."); } $ar_manager = TActiveRecordManager::getInstance(); $_conn = $ar_manager->getDbConnection(); $_conn->Active = true; $this->_dbMetaData = TDbMetaData::getInstance($_conn); }
/** * @return TActiveRecordManager */ public function getManager() { if ($this->_manager === null) { $this->_manager = Prado::createComponent($this->getManagerClass()); } return TActiveRecordManager::getInstance($this->_manager); }
/** * @return TActiveRecordGateway record table gateway. */ public function getRecordGateway() { return TActiveRecordManager::getInstance()->getRecordGateway(); }