ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Class ActiveRecordList. More...
Public Member Functions | |
__construct (ActiveRecord $ar) | |
additionalParams (array $additional_params) | |
where ($where, $operator=NULL) | |
orderBy ($order_by, $order_direction='ASC') | |
limit ($start, $end) | |
innerjoinAR (ActiveRecord $ar, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) | |
leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) | |
innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) | |
concat (array $fields, $as) | |
getArWhereCollection () | |
getArJoinCollection () | |
getArOrderCollection () | |
getArLimitCollection () | |
getArConcatCollection () | |
getArSelectCollection () | |
dateFormat ($date_format='d.m.Y - H:i:s') | |
debug () | |
connector (arConnector $connector) | |
raw ($set_raw=true) | |
hasSets () | |
affectedRows () | |
count () | |
getCollection () | |
setClass ($class) | |
getClass () | |
get () | |
getFirstFromLastQuery () | |
first () | |
last () | |
getArray ($key=NULL, $values=NULL) | |
setAR ($ar) | |
getAR () | |
getDebug () | |
setDateFormat ($date_format) | |
getDateFormat () | |
setAddidtionalParameters ($addidtional_parameters) | |
getAddidtionalParameters () | |
setRaw ($raw) | |
getRaw () | |
Static Public Member Functions | |
static | setLastQuery ($last_query) |
static | getLastQuery () |
Protected Member Functions | |
getArConnector () | |
join ($type=arJoin::TYPE_INNER, $tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) | |
buildArray ($key, $values) | |
buildRow ($row, $values) | |
loadLastQuery () | |
Protected Attributes | |
$arWhereCollection | |
$arJoinCollection | |
$arOrderCollection | |
$arLimitCollection | |
$arConcatCollection | |
$arSelectCollection | |
$loaded = false | |
$class = '' | |
$result = array() | |
$result_array = array() | |
$debug = false | |
$date_format = NULL | |
$addidtional_parameters = array() | |
$connector | |
$ar | |
$raw = false | |
Static Protected Attributes | |
static | $last_query |
ActiveRecordList::__construct | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Definition at line 94 of file class.ActiveRecordList.php.
References getAR(), getArSelectCollection(), ActiveRecord\getConnectorContainerName(), and setAR().
ActiveRecordList::additionalParams | ( | array | $additional_params | ) |
array | $additional_params |
Definition at line 131 of file class.ActiveRecordList.php.
References setAddidtionalParameters().
ActiveRecordList::affectedRows | ( | ) |
Definition at line 444 of file class.ActiveRecordList.php.
References getArConnector().
Referenced by count(), and hasSets().
|
protected |
$key | |
$values |
Exception |
Definition at line 542 of file class.ActiveRecordList.php.
References $result_array, $row, and buildRow().
Referenced by getArray().
|
protected |
$row | |
$values |
Definition at line 568 of file class.ActiveRecordList.php.
References $records, $res, $row, getAddidtionalParameters(), getAR(), getArConnector(), getDateFormat(), and getRaw().
Referenced by buildArray().
ActiveRecordList::concat | ( | array | $fields, |
$as | |||
) |
array | $fields | |
$as |
Definition at line 319 of file class.ActiveRecordList.php.
References getArConcatCollection().
ActiveRecordList::connector | ( | arConnector | $connector | ) |
arConnector | $connector |
Definition at line 414 of file class.ActiveRecordList.php.
References $connector.
ActiveRecordList::count | ( | ) |
Definition at line 452 of file class.ActiveRecordList.php.
References affectedRows().
ActiveRecordList::dateFormat | ( | $date_format = 'd.m.Y - H:i:s' | ) |
string | $date_format |
Definition at line 390 of file class.ActiveRecordList.php.
References $date_format, and setDateFormat().
ActiveRecordList::debug | ( | ) |
ActiveRecordList::first | ( | ) |
Definition at line 505 of file class.ActiveRecordList.php.
ActiveRecordList::get | ( | ) |
ActiveRecordList::getAddidtionalParameters | ( | ) |
Definition at line 712 of file class.ActiveRecordList.php.
References $addidtional_parameters.
Referenced by buildRow().
ActiveRecordList::getAR | ( | ) |
Definition at line 656 of file class.ActiveRecordList.php.
References $ar.
Referenced by __construct(), buildRow(), getArConnector(), join(), orderBy(), and arConnectorSession\readSet().
ActiveRecordList::getArConcatCollection | ( | ) |
Definition at line 367 of file class.ActiveRecordList.php.
References $arConcatCollection.
Referenced by arConnectorDB\buildQuery(), and concat().
|
protected |
Definition at line 119 of file class.ActiveRecordList.php.
References arConnectorMap\get(), and getAR().
Referenced by affectedRows(), and buildRow().
ActiveRecordList::getArJoinCollection | ( | ) |
Definition at line 343 of file class.ActiveRecordList.php.
References $arJoinCollection.
Referenced by arConnectorDB\buildQuery(), and join().
ActiveRecordList::getArLimitCollection | ( | ) |
Definition at line 359 of file class.ActiveRecordList.php.
References $arLimitCollection.
Referenced by arConnectorDB\buildQuery(), and limit().
ActiveRecordList::getArOrderCollection | ( | ) |
Definition at line 351 of file class.ActiveRecordList.php.
References $arOrderCollection.
Referenced by arConnectorDB\buildQuery(), and orderBy().
ActiveRecordList::getArray | ( | $key = NULL , |
|
$values = NULL |
|||
) |
string | $key | shall a specific value be used as a key? if null then the 1. array key is just increasing from 0. |
string | array | $values | which values should be taken? if null all are given. If only a string is given then the result is an 1D array! |
Definition at line 528 of file class.ActiveRecordList.php.
References buildArray().
ActiveRecordList::getArSelectCollection | ( | ) |
Definition at line 375 of file class.ActiveRecordList.php.
References $arSelectCollection.
Referenced by __construct(), arConnectorDB\buildQuery(), and join().
ActiveRecordList::getArWhereCollection | ( | ) |
Definition at line 335 of file class.ActiveRecordList.php.
References $arWhereCollection.
Referenced by arConnectorDB\buildQuery(), arConnectorSession\readSet(), and where().
ActiveRecordList::getClass | ( | ) |
ActiveRecordList::getCollection | ( | ) |
Definition at line 460 of file class.ActiveRecordList.php.
ActiveRecordList::getDateFormat | ( | ) |
Definition at line 680 of file class.ActiveRecordList.php.
References $date_format.
Referenced by buildRow().
ActiveRecordList::getDebug | ( | ) |
Definition at line 664 of file class.ActiveRecordList.php.
References $debug.
Referenced by arConnectorDB\buildQuery().
ActiveRecordList::getFirstFromLastQuery | ( | ) |
Definition at line 495 of file class.ActiveRecordList.php.
References loadLastQuery().
|
static |
Definition at line 696 of file class.ActiveRecordList.php.
ActiveRecordList::getRaw | ( | ) |
Definition at line 728 of file class.ActiveRecordList.php.
References $raw.
Referenced by buildRow().
ActiveRecordList::hasSets | ( | ) |
Definition at line 436 of file class.ActiveRecordList.php.
References affectedRows().
ActiveRecordList::innerjoin | ( | $tablename, | |
$on_this, | |||
$on_external, | |||
$fields = array( '*' ) , |
|||
$operator = '=' , |
|||
$both_external = false |
|||
) |
$tablename | ||
$on_this | ||
$on_external | ||
array | $fields | |
string | $operator | |
bool | $both_external |
Definition at line 308 of file class.ActiveRecordList.php.
References join(), and arJoin\TYPE_INNER.
Referenced by innerjoinAR().
ActiveRecordList::innerjoinAR | ( | ActiveRecord | $ar, |
$on_this, | |||
$on_external, | |||
$fields = array( '*' ) , |
|||
$operator = '=' , |
|||
$both_external = false |
|||
) |
ActiveRecord | $ar | |
$on_this | ||
$on_external | ||
array | $fields | |
string | $operator | |
bool | $both_external |
Definition at line 228 of file class.ActiveRecordList.php.
References ActiveRecord\getConnectorContainerName(), and innerjoin().
|
protected |
string | $type | |
$tablename | ||
$on_this | ||
$on_external | ||
array | $fields | |
string | $operator | |
bool | $both_external |
arException |
Definition at line 246 of file class.ActiveRecordList.php.
References getAR(), getArJoinCollection(), getArSelectCollection(), and arException\LIST_JOIN_ON_WRONG_FIELD.
Referenced by innerjoin(), and leftjoin().
ActiveRecordList::last | ( | ) |
Definition at line 515 of file class.ActiveRecordList.php.
ActiveRecordList::leftjoin | ( | $tablename, | |
$on_this, | |||
$on_external, | |||
$fields = array( '*' ) , |
|||
$operator = '=' , |
|||
$both_external = false |
|||
) |
$tablename | ||
$on_this | ||
$on_external | ||
array | $fields | |
string | $operator | |
bool | $both_external |
Definition at line 292 of file class.ActiveRecordList.php.
References join(), and arJoin\TYPE_LEFT.
ActiveRecordList::limit | ( | $start, | |
$end | |||
) |
$start | |
$end |
arException |
Definition at line 207 of file class.ActiveRecordList.php.
References getArLimitCollection().
|
protected |
Definition at line 637 of file class.ActiveRecordList.php.
Referenced by getFirstFromLastQuery().
ActiveRecordList::orderBy | ( | $order_by, | |
$order_direction = 'ASC' |
|||
) |
$order_by | ||
string | $order_direction |
arException |
Definition at line 187 of file class.ActiveRecordList.php.
References getAR(), and getArOrderCollection().
ActiveRecordList::raw | ( | $set_raw = true | ) |
bool | $set_raw |
Definition at line 426 of file class.ActiveRecordList.php.
References setRaw().
Referenced by setRaw().
ActiveRecordList::setAddidtionalParameters | ( | $addidtional_parameters | ) |
array | $addidtional_parameters |
Definition at line 704 of file class.ActiveRecordList.php.
References $addidtional_parameters.
Referenced by additionalParams().
ActiveRecordList::setAR | ( | $ar | ) |
ActiveRecord | $ar |
Definition at line 648 of file class.ActiveRecordList.php.
References $ar.
Referenced by __construct().
ActiveRecordList::setClass | ( | $class | ) |
string | $class |
Definition at line 468 of file class.ActiveRecordList.php.
References $class.
ActiveRecordList::setDateFormat | ( | $date_format | ) |
null | $date_format |
Definition at line 672 of file class.ActiveRecordList.php.
References $date_format.
Referenced by dateFormat().
|
static |
string | $last_query |
Definition at line 688 of file class.ActiveRecordList.php.
References $last_query.
Referenced by arConnectorDB\buildQuery().
ActiveRecordList::setRaw | ( | $raw | ) |
boolean | $raw |
Definition at line 720 of file class.ActiveRecordList.php.
Referenced by raw().
ActiveRecordList::where | ( | $where, | |
$operator = NULL |
|||
) |
$where | ||
null | $operator |
Exception |
Definition at line 149 of file class.ActiveRecordList.php.
References getArWhereCollection(), and arWhere\TYPE_STRING.
|
protected |
Definition at line 72 of file class.ActiveRecordList.php.
Referenced by getAddidtionalParameters(), and setAddidtionalParameters().
|
protected |
Definition at line 84 of file class.ActiveRecordList.php.
|
protected |
Definition at line 40 of file class.ActiveRecordList.php.
Referenced by getArConcatCollection().
|
protected |
Definition at line 28 of file class.ActiveRecordList.php.
Referenced by getArJoinCollection().
|
protected |
Definition at line 36 of file class.ActiveRecordList.php.
Referenced by getArLimitCollection().
|
protected |
Definition at line 32 of file class.ActiveRecordList.php.
Referenced by getArOrderCollection().
|
protected |
Definition at line 44 of file class.ActiveRecordList.php.
Referenced by getArSelectCollection().
|
protected |
Definition at line 24 of file class.ActiveRecordList.php.
Referenced by getArWhereCollection().
|
protected |
Definition at line 52 of file class.ActiveRecordList.php.
Referenced by getClass(), and setClass().
|
protected |
Definition at line 80 of file class.ActiveRecordList.php.
Referenced by connector().
|
protected |
Definition at line 68 of file class.ActiveRecordList.php.
Referenced by dateFormat(), getDateFormat(), and setDateFormat().
|
protected |
Definition at line 64 of file class.ActiveRecordList.php.
Referenced by getDebug().
|
staticprotected |
Definition at line 76 of file class.ActiveRecordList.php.
Referenced by setLastQuery().
|
protected |
Definition at line 48 of file class.ActiveRecordList.php.
|
protected |
Definition at line 88 of file class.ActiveRecordList.php.
|
protected |
Definition at line 56 of file class.ActiveRecordList.php.
Referenced by get().
|
protected |
Definition at line 60 of file class.ActiveRecordList.php.
Referenced by buildArray().