ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


Action unknown: siteexport_addpage
v5:activerecord:dbat

$_dbat

TypeString
DefaultNULL

Description

Setting the value of this class variable forces the class to use the specified database connection for a class. Form more information on this, see ADOdb_Active_Record::setDatabaseAdaptor(). There is normally no need to use this unless multiple database connections have been configured.

Usage

In the example below, an Active Record class called person is associated with a database adaptor called oracleAdaptor.

class person extends ADOdb_Active_Record
{
   public $_dbat = 'oracleAdaptor';
}
v5/activerecord/dbat.txt · Last modified: 2022/06/09 21:14 by 154.54.249.205