|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
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 () | |
| 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 |
Class ActiveRecordList.
@description
Definition at line 19 of file class.ActiveRecordList.php.
| ActiveRecordList::__construct | ( | ActiveRecord | $ar | ) |
| ActiveRecord | $ar |
Definition at line 94 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 131 of file class.ActiveRecordList.php.
References setAddidtionalParameters().
Here is the call graph for this function:| ActiveRecordList::affectedRows | ( | ) |
Definition at line 444 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 542 of file class.ActiveRecordList.php.
References $result_array, $row, 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 568 of file class.ActiveRecordList.php.
References $row.
Referenced by buildArray().
Here is the caller graph for this function:| ActiveRecordList::concat | ( | array | $fields, |
| $as | |||
| ) |
| array | $fields | |
| $as |
Definition at line 319 of file class.ActiveRecordList.php.
References getArConcatCollection().
Here is the call graph for this function:| ActiveRecordList::connector | ( | arConnector | $connector | ) |
| arConnector | $connector |
Definition at line 414 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 452 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 390 of file class.ActiveRecordList.php.
References $date_format, and setDateFormat().
Here is the call graph for this function:| ActiveRecordList::debug | ( | ) |
Definition at line 401 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 505 of file class.ActiveRecordList.php.
| ActiveRecordList::get | ( | ) |
Definition at line 484 of file class.ActiveRecordList.php.
References $result.
| ActiveRecordList::getAddidtionalParameters | ( | ) |
Definition at line 712 of file class.ActiveRecordList.php.
References $addidtional_parameters.
| ActiveRecordList::getAR | ( | ) |
Definition at line 656 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 367 of file class.ActiveRecordList.php.
References $arConcatCollection.
Referenced by arConnectorDB\buildQuery(), and concat().
Here is the caller graph for this function:
|
protected |
Definition at line 119 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::getArJoinCollection | ( | ) |
Definition at line 343 of file class.ActiveRecordList.php.
References $arJoinCollection.
Referenced by arConnectorDB\buildQuery(), and join().
Here is the caller graph for this function:| ActiveRecordList::getArLimitCollection | ( | ) |
Definition at line 359 of file class.ActiveRecordList.php.
References $arLimitCollection.
Referenced by arConnectorDB\buildQuery(), and limit().
Here is the caller graph for this function:| ActiveRecordList::getArOrderCollection | ( | ) |
Definition at line 351 of file class.ActiveRecordList.php.
References $arOrderCollection.
Referenced by arConnectorDB\buildQuery(), and 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 528 of file class.ActiveRecordList.php.
References buildArray().
Here is the call graph for this function:| ActiveRecordList::getArSelectCollection | ( | ) |
Definition at line 375 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 335 of file class.ActiveRecordList.php.
References $arWhereCollection.
Referenced by arConnectorDB\buildQuery(), arConnectorSession\readSet(), and where().
Here is the caller graph for this function:| ActiveRecordList::getClass | ( | ) |
Definition at line 476 of file class.ActiveRecordList.php.
References $class.
| 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.
| ActiveRecordList::getDebug | ( | ) |
Definition at line 664 of file class.ActiveRecordList.php.
References $debug.
Referenced by arConnectorDB\buildQuery().
Here is the caller graph for this function:| ActiveRecordList::getFirstFromLastQuery | ( | ) |
Definition at line 495 of file class.ActiveRecordList.php.
References loadLastQuery().
Here is the call graph for this function:
|
static |
Definition at line 696 of file class.ActiveRecordList.php.
References $last_query.
| ActiveRecordList::getRaw | ( | ) |
Definition at line 728 of file class.ActiveRecordList.php.
References $raw.
| ActiveRecordList::hasSets | ( | ) |
Definition at line 436 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 308 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 228 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 246 of file class.ActiveRecordList.php.
References 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 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.
Here is the call graph for this function:| ActiveRecordList::limit | ( | $start, | |
| $end | |||
| ) |
| $start | |
| $end |
| arException |
Definition at line 207 of file class.ActiveRecordList.php.
References getArLimitCollection().
Here is the call graph for this function:
|
protected |
Definition at line 637 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 187 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 426 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 704 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 648 of file class.ActiveRecordList.php.
References $ar.
Referenced by __construct().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
static |
| string | $last_query |
Definition at line 688 of file class.ActiveRecordList.php.
References $last_query.
Referenced by arConnectorDB\buildQuery().
Here is the caller graph for this function:| ActiveRecordList::setRaw | ( | $raw | ) |
| boolean | $raw |
Definition at line 720 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 149 of file class.ActiveRecordList.php.
References getArWhereCollection(), and arWhere\TYPE_STRING.
Here is the call graph for this function:
|
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.
Referenced by __construct(), getAR(), and setAR().
|
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 getLastQuery(), and 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().