|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ActiveRecordList. More...
Inheritance diagram for ActiveRecordList:
Collaboration diagram for ActiveRecordList: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 () | |
| getArHavingCollection () | |
| setArHavingCollection ($arHavingCollection) | |
| 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 | |
| $arHavingCollection | |
| $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 |
Class ActiveRecordList.
@description
Definition at line 20 of file class.ActiveRecordList.php.
| ActiveRecordList::__construct | ( | ActiveRecord | $ar | ) |
| ActiveRecord | $ar |
Definition at line 100 of file class.ActiveRecordList.php.
References $ar, getAR(), getArSelectCollection(), and setAR().
Here is the call graph for this function:| ActiveRecordList::additionalParams | ( | array | $additional_params | ) |
| array | $additional_params |
Definition at line 140 of file class.ActiveRecordList.php.
References setAddidtionalParameters().
Here is the call graph for this function:| ActiveRecordList::affectedRows | ( | ) |
Definition at line 488 of file class.ActiveRecordList.php.
References getArConnector().
Referenced by count(), and hasSets().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $key | |
| $values |
| Exception |
Definition at line 602 of file class.ActiveRecordList.php.
References $key, $result_array, $row, $values, and buildRow().
Referenced by getArray().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $row | |
| $values |
Definition at line 629 of file class.ActiveRecordList.php.
References $key, $row, and $values.
Referenced by buildArray().
Here is the caller graph for this function:| ActiveRecordList::concat | ( | array | $fields, |
| $as | |||
| ) |
| array | $fields | |
| $as |
Definition at line 336 of file class.ActiveRecordList.php.
References $as, and getArConcatCollection().
Here is the call graph for this function:| ActiveRecordList::connector | ( | arConnector | $connector | ) |
| arConnector | $connector |
Definition at line 455 of file class.ActiveRecordList.php.
References $connector, and connector().
Referenced by connector().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecordList::count | ( | ) |
Definition at line 497 of file class.ActiveRecordList.php.
References affectedRows().
Here is the call graph for this function:| ActiveRecordList::dateFormat | ( | $date_format = 'd.m.Y - H:i:s' | ) |
| string | $date_format |
Definition at line 429 of file class.ActiveRecordList.php.
References $date_format, and setDateFormat().
Here is the call graph for this function:| ActiveRecordList::debug | ( | ) |
Definition at line 441 of file class.ActiveRecordList.php.
References debug().
Referenced by debug().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecordList::first | ( | ) |
Definition at line 558 of file class.ActiveRecordList.php.
References $result.
| ActiveRecordList::get | ( | ) |
| ActiveRecordList::getAddidtionalParameters | ( | ) |
Definition at line 781 of file class.ActiveRecordList.php.
References $addidtional_parameters.
| ActiveRecordList::getAR | ( | ) |
Definition at line 718 of file class.ActiveRecordList.php.
References $ar.
Referenced by __construct(), getArConnector(), join(), orderBy(), and arConnectorSession\readSet().
Here is the caller graph for this function:| ActiveRecordList::getArConcatCollection | ( | ) |
Definition at line 389 of file class.ActiveRecordList.php.
References $arConcatCollection.
Referenced by concat().
Here is the caller graph for this function:
|
protected |
Definition at line 127 of file class.ActiveRecordList.php.
References arConnectorMap\get(), and getAR().
Referenced by affectedRows().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecordList::getArHavingCollection | ( | ) |
Definition at line 406 of file class.ActiveRecordList.php.
References $arHavingCollection.
| ActiveRecordList::getArJoinCollection | ( | ) |
Definition at line 362 of file class.ActiveRecordList.php.
References $arJoinCollection.
Referenced by join().
Here is the caller graph for this function:| ActiveRecordList::getArLimitCollection | ( | ) |
Definition at line 380 of file class.ActiveRecordList.php.
References $arLimitCollection.
Referenced by limit().
Here is the caller graph for this function:| ActiveRecordList::getArOrderCollection | ( | ) |
Definition at line 371 of file class.ActiveRecordList.php.
References $arOrderCollection.
Referenced by orderBy().
Here is the caller graph for this function:| 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 587 of file class.ActiveRecordList.php.
References $key, $values, and buildArray().
Here is the call graph for this function:| ActiveRecordList::getArSelectCollection | ( | ) |
Definition at line 398 of file class.ActiveRecordList.php.
References $arSelectCollection.
Referenced by __construct(), arConnectorDB\buildQuery(), and join().
Here is the caller graph for this function:| ActiveRecordList::getArWhereCollection | ( | ) |
Definition at line 353 of file class.ActiveRecordList.php.
References $arWhereCollection.
Referenced by arConnectorSession\readSet(), and where().
Here is the caller graph for this function:| ActiveRecordList::getClass | ( | ) |
Definition at line 524 of file class.ActiveRecordList.php.
References $class.
| ActiveRecordList::getCollection | ( | ) |
Definition at line 506 of file class.ActiveRecordList.php.
| ActiveRecordList::getDateFormat | ( | ) |
Definition at line 745 of file class.ActiveRecordList.php.
References $date_format.
| ActiveRecordList::getDebug | ( | ) |
Definition at line 727 of file class.ActiveRecordList.php.
References $debug.
| ActiveRecordList::getFirstFromLastQuery | ( | ) |
Definition at line 545 of file class.ActiveRecordList.php.
References $result, and loadLastQuery().
Here is the call graph for this function:
|
static |
Definition at line 763 of file class.ActiveRecordList.php.
References $last_query.
| ActiveRecordList::getRaw | ( | ) |
Definition at line 799 of file class.ActiveRecordList.php.
References $raw.
| ActiveRecordList::hasSets | ( | ) |
Definition at line 479 of file class.ActiveRecordList.php.
References affectedRows().
Here is the call graph for this function:| 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 324 of file class.ActiveRecordList.php.
References join(), and arJoin\TYPE_INNER.
Referenced by innerjoinAR().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 241 of file class.ActiveRecordList.php.
References ActiveRecord\getConnectorContainerName(), and innerjoin().
Here is the call graph for this function:
|
protected |
| string | $type | |
| $tablename | ||
| $on_this | ||
| $on_external | ||
| array | $fields | |
| string | $operator | |
| bool | $both_external |
| arException |
Definition at line 260 of file class.ActiveRecordList.php.
References $type, getAR(), getArJoinCollection(), getArSelectCollection(), and arException\LIST_JOIN_ON_WRONG_FIELD.
Referenced by innerjoin(), and leftjoin().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecordList::last | ( | ) |
Definition at line 571 of file class.ActiveRecordList.php.
References $result.
| 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 307 of file class.ActiveRecordList.php.
References join(), and arJoin\TYPE_LEFT.
Here is the call graph for this function:| ActiveRecordList::limit | ( | $start, | |
| $end | |||
| ) |
| $start | |
| $end |
| arException |
Definition at line 219 of file class.ActiveRecordList.php.
References $end, $start, and getArLimitCollection().
Here is the call graph for this function:
|
protected |
Definition at line 697 of file class.ActiveRecordList.php.
Referenced by getFirstFromLastQuery().
Here is the caller graph for this function:| ActiveRecordList::orderBy | ( | $order_by, | |
$order_direction = 'ASC' |
|||
| ) |
| $order_by | ||
| string | $order_direction |
| arException |
Definition at line 198 of file class.ActiveRecordList.php.
References getAR(), and getArOrderCollection().
Here is the call graph for this function:| ActiveRecordList::raw | ( | $set_raw = true | ) |
| bool | $set_raw |
Definition at line 468 of file class.ActiveRecordList.php.
References setRaw().
Referenced by setRaw().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecordList::setAddidtionalParameters | ( | $addidtional_parameters | ) |
| array | $addidtional_parameters |
Definition at line 772 of file class.ActiveRecordList.php.
References $addidtional_parameters.
Referenced by additionalParams().
Here is the caller graph for this function:| ActiveRecordList::setAR | ( | $ar | ) |
| ActiveRecord | $ar |
Definition at line 709 of file class.ActiveRecordList.php.
References $ar.
Referenced by __construct().
Here is the caller graph for this function:| ActiveRecordList::setArHavingCollection | ( | $arHavingCollection | ) |
| arHavingCollection | $arHavingCollection |
Definition at line 415 of file class.ActiveRecordList.php.
References $arHavingCollection.
| ActiveRecordList::setClass | ( | $class | ) |
| string | $class |
Definition at line 515 of file class.ActiveRecordList.php.
References $class.
| ActiveRecordList::setDateFormat | ( | $date_format | ) |
| null | $date_format |
Definition at line 736 of file class.ActiveRecordList.php.
References $date_format.
Referenced by dateFormat().
Here is the caller graph for this function:
|
static |
| string | $last_query |
Definition at line 754 of file class.ActiveRecordList.php.
References $last_query.
| ActiveRecordList::setRaw | ( | $raw | ) |
| boolean | $raw |
Definition at line 790 of file class.ActiveRecordList.php.
Referenced by raw().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecordList::where | ( | $where, | |
$operator = null |
|||
| ) |
| $where | ||
| null | $operator |
| Exception |
Definition at line 159 of file class.ActiveRecordList.php.
References getArWhereCollection(), and arWhere\TYPE_STRING.
Here is the call graph for this function:
|
protected |
Definition at line 78 of file class.ActiveRecordList.php.
Referenced by getAddidtionalParameters(), and setAddidtionalParameters().
|
protected |
Definition at line 90 of file class.ActiveRecordList.php.
Referenced by __construct(), getAR(), and setAR().
|
protected |
Definition at line 42 of file class.ActiveRecordList.php.
Referenced by getArConcatCollection().
|
protected |
Definition at line 50 of file class.ActiveRecordList.php.
Referenced by getArHavingCollection(), and setArHavingCollection().
|
protected |
Definition at line 30 of file class.ActiveRecordList.php.
Referenced by getArJoinCollection().
|
protected |
Definition at line 38 of file class.ActiveRecordList.php.
Referenced by getArLimitCollection().
|
protected |
Definition at line 34 of file class.ActiveRecordList.php.
Referenced by getArOrderCollection().
|
protected |
Definition at line 46 of file class.ActiveRecordList.php.
Referenced by getArSelectCollection().
|
protected |
Definition at line 26 of file class.ActiveRecordList.php.
Referenced by getArWhereCollection().
|
protected |
Definition at line 58 of file class.ActiveRecordList.php.
Referenced by getClass(), and setClass().
|
protected |
Definition at line 86 of file class.ActiveRecordList.php.
Referenced by connector().
|
protected |
Definition at line 74 of file class.ActiveRecordList.php.
Referenced by dateFormat(), getDateFormat(), and setDateFormat().
|
protected |
Definition at line 70 of file class.ActiveRecordList.php.
Referenced by getDebug().
|
staticprotected |
Definition at line 82 of file class.ActiveRecordList.php.
Referenced by getLastQuery(), and setLastQuery().
|
protected |
Definition at line 54 of file class.ActiveRecordList.php.
|
protected |
Definition at line 94 of file class.ActiveRecordList.php.
|
protected |
Definition at line 62 of file class.ActiveRecordList.php.
Referenced by first(), get(), getFirstFromLastQuery(), and last().
|
protected |
Definition at line 66 of file class.ActiveRecordList.php.
Referenced by buildArray().