Public Member Functions | ||||
setDefault (DB $db) | ||||
| ||||
dropDefault () | ||||
| ||||
addLink ($name, DB $db) | ||||
| ||||
dropLink ($name) | ||||
| ||||
getLink ($name=null) | ||||
| ||||
shutdown () | ||||
| ||||
disconnect () | ||||
| ||||
Static Public Member Functions | ||||
static | me () | |||
| ||||
static | getByDao (GenericDAO $dao) | |||
| ||||
Private Attributes | ||||
$default = null | ||||
$pool = array() |
Definition at line 18 of file DBPool.class.php.
static DBPool::me | ( | ) | [static] |
Implements Instantiatable.
Definition at line 27 of file DBPool.class.php.
References Singleton::getInstance().
Referenced by MetaConfiguration::buildSchemaChanges(), DebugUtils::eq(), CommonDaoWorker::getById(), CommonDaoWorker::getByQuery(), CommonDaoWorker::getCustom(), CommonDaoWorker::getCustomList(), CommonDaoWorker::getCustomRowList(), CommonDaoWorker::getListByQuery(), MyImprovedDialect::quoteValue(), and DaoUtils::swap().
static DBPool::getByDao | ( | GenericDAO $ | dao | ) | [static] |
Definition at line 35 of file DBPool.class.php.
Referenced by OneToManyLinkedLazy::$insert(), OneToManyLinkedFull::$insert(), ManyToManyLinkedLazy::$insert(), ManyToManyLinkedFull::$insert(), StorableDAO::add(), NullDaoWorker::dropById(), BaseDaoWorker::dropById(), NullDaoWorker::dropByIds(), BaseDaoWorker::dropByIds(), BaseDaoWorker::fetchList(), BaseDaoWorker::fetchObject(), TransparentDaoWorker::getCustom(), NullDaoWorker::getCustom(), CommonDaoWorker::getCustom(), TransparentDaoWorker::getCustomList(), NullDaoWorker::getCustomList(), CommonDaoWorker::getCustomList(), TransparentDaoWorker::getCustomRowList(), NullDaoWorker::getCustomRowList(), CommonDaoWorker::getCustomRowList(), TransparentDaoWorker::getQueryResult(), NullDaoWorker::getQueryResult(), CommonDaoWorker::getQueryResult(), StorableDAO::inject(), CarefulDatabaseRunner::run(), UnifiedContainer::save(), and Criteria::toString().
DBPool::setDefault | ( | DB $ | db | ) |
DBPool::dropDefault | ( | ) |
DBPool::addLink | ( | $ | name, | |
DB $ | db | |||
) |
DBPool::dropLink | ( | $ | name | ) |
DBPool::getLink | ( | $ | name = null |
) |
DBPool::shutdown | ( | ) |
Definition at line 126 of file DBPool.class.php.
References disconnect().
DBPool::disconnect | ( | ) |
DBPool::$default = null [private] |
Definition at line 20 of file DBPool.class.php.
DBPool::$pool = array() [private] |
Definition at line 22 of file DBPool.class.php.