ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:getactiverecordsclass

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
v5:activerecord:getactiverecordsclass [2016/01/13 02:15]
mnewnham ↷ Page moved from activerecord:getactiverecordsclass to v5:activerecord:getactiverecordsclass
v5:activerecord:getactiverecordsclass [2018/07/02 14:17] (current)
peterdd prefer functions start lowercase (#430)
Line 26: Line 26:
  Where, order, by clause  Where, order, by clause
 ==== $bindarr ==== ==== $bindarr ====
-For more information on the use of ''Bind'' variables, see [[reference:execute()]]+For more information on the use of ''Bind'' variables, see [[v5:reference:connection:execute]]
 ==== $primaryKeyArray ==== ==== $primaryKeyArray ====
    
Line 38: Line 38:
 $table = 'products'; $table = 'products';
 $whereOrderBy = "name LIKE 'A%' ORDER BY Name"; $whereOrderBy = "name LIKE 'A%' ORDER BY Name";
-$activeRecArr = $db->GetActiveRecordsClass('Product',+$activeRecArr = $db->getActiveRecordsClass('Product',
                                             $table,                                             $table,
                                             $whereOrderBy);                                             $whereOrderBy);
Line 54: Line 54:
 <code php> <code php>
  
-$activeRecArr = $db->GetActiveRecordsClass($className,$tableName, 'name LIKE ?',+$activeRecArr = $db->getActiveRecordsClass($className,$tableName, 'name LIKE ?',
  array('A%'));  array('A%'));
 /* /*
Line 60: Line 60:
 */ */
  
-$activeRecArr = $db->GetActiveRecordsClass($className,$tableName, 'name LIKE ?',+$activeRecArr = $db->getActiveRecordsClass($className,$tableName, 'name LIKE ?',
  array('A%'), array('id'));  array('A%'), array('id'));
  
v5/activerecord/getactiverecordsclass.1452647745.txt.gz · Last modified: 2017/04/21 11:21 (external edit)