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
v5:activerecord:getactiverecordsclass [2016/01/19 05:02]
66.249.75.209 ↷ Links adapted because of a move operation
v5:activerecord:getactiverecordsclass [2018/07/02 14:17] (current)
peterdd prefer functions start lowercase (#430)
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.txt · Last modified: 2018/07/02 14:17 by peterdd