ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:getactiverecordsclass

This is an old revision of the document!


getActiveRecordsClass

Syntax
void getActiveRecordsClass(
 string $class,
 string $tableName,
 optional string  $where=false,
 optional mixed[] $bindarr=false,
 optional mixed[] $primaryKeyArray=false,
 optional mixed[] $queryExtras=array(),
 optional mixed[] $relationsData=array()
)

Description

GetActiveRecordsClass Performs an 'ALL' query

Parameters

$class

This string represents the class of the current active record

$table

Table used by the active record object

$whereOrderBy

Where, order, by clause

$bindarr

For more information on the use of Bind variables, see execute()

$primaryKeyArray

$queryExtras

Query extras: limit, offset…

$relationsData

Usage

include 'adodb/adodb.inc.php';
include 'adodb/adodb-activerecord.inc.php';
 
$db = NewADOConnection('mysqli');
$db->connect('','user','password','employees');
 
$activeRecs = $db->GetActiveRecords('departments');
 
v5/activerecord/getactiverecordsclass.1449276953.txt.gz · Last modified: 2017/04/21 11:21 (external edit)