function adodb_GetActiveRecordsClass(&$db, $class, $table, $whereOrderBy, $bindarr, $primkeyArr, $extra) { $qry = "select * from " . $table; if (!empty($whereOrderBy)) { $qry .= ' WHERE ' . $whereOrderBy; } return adodb_GetActiveRecordsClass2($db, $class, $table, $qry, $bindarr, $primkeyArr, $extra); }
/** * GetActiveRecordsClass2 Performs an 'ALL' query * * @param mixed $class This string represents the class of the current active record * @param mixed $table Table used by the active record object * @param mixed $qry Select Statement * @param mixed $bindarr * @param mixed $primkeyArr * @param array $extra Query extras: limit, offset... * @param mixed $relations Associative array: table's foreign name, "hasMany", "belongsTo" * @access public * @return void */ function GetActiveRecordsClass2($class, $table, $qry, $bindarr = false, $primkeyArr = false, $extra = array(), $relations = array()) { global $_ADODB_ACTIVE_DBS; ## reduce overhead of adodb.inc.php -- moved to adodb-active-record.inc.php ## if adodb-active-recordx is loaded -- should be no issue as they will probably use Find() if (!isset($_ADODB_ACTIVE_DBS)) { include_once ADODB_DIR . '/adodb-active-record.inc.php'; } return adodb_GetActiveRecordsClass2($this, $class, $table, $qry, $bindarr, $primkeyArr, $extra, $relations); }