v5:activerecord:setdatabaseadapter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
activerecord:setdatabaseadaptor [2015/12/06 02:47] – [Usage] mnewnham | v5:activerecord:setdatabaseadaptor [2016/01/13 02:15] – ↷ Links adapted because of a move operation mnewnham | ||
---|---|---|---|
Line 2: | Line 2: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
<WRAP right box> | <WRAP right box> | ||
+ | == See Also == | ||
+ | [[v5: | ||
== Syntax == | == Syntax == | ||
bool ADODB_Active_Record:: | bool ADODB_Active_Record:: | ||
Line 9: | Line 11: | ||
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | This allows | + | This links the Active Record class to an ADOdb database connection. The method returns true if it is a valid connection, or false if not. |
+ | |||
+ | The optional '' | ||
------------------------ | ------------------------ | ||
===== Usage ===== | ===== Usage ===== | ||
Line 15: | Line 19: | ||
<code php> | <code php> | ||
$db = newAdoConnection(' | $db = newAdoConnection(' | ||
+ | $db-> | ||
$ADOdb_Active_Record:: | $ADOdb_Active_Record:: | ||
</ | </ | ||
Line 21: | Line 26: | ||
$db = NewADOConnection(' | $db = NewADOConnection(' | ||
$db2 = NewADOConnection(' | $db2 = NewADOConnection(' | ||
+ | |||
+ | $db-> | ||
+ | $db2-> | ||
ADOdb_Active_Record:: | ADOdb_Active_Record:: | ||
Line 38: | Line 46: | ||
* Assigns the oracle connection to this class | * Assigns the oracle connection to this class | ||
*/ | */ | ||
- | public $_dbat = 'moonnection'; | + | public $_dbat = 'oConnection'; |
} | } | ||
</ | </ |
v5/activerecord/setdatabaseadapter.txt · Last modified: 2022/06/09 18:15 by dregad