ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 () | |
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 |
ActiveRecordList::__construct | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Definition at line 100 of file class.ActiveRecordList.php.
References getAR(), getArSelectCollection(), ActiveRecord\getConnectorContainerName(), and setAR().
ActiveRecordList::additionalParams | ( | array | $additional_params | ) |
array | $additional_params |
Definition at line 140 of file class.ActiveRecordList.php.
References setAddidtionalParameters().
ActiveRecordList::affectedRows | ( | ) |
Definition at line 488 of file class.ActiveRecordList.php.
References getArConnector().
Referenced by count(), and hasSets().
|
protected |
$key | |
$values |
Exception |
Definition at line 602 of file class.ActiveRecordList.php.
References $key, $result_array, $row, $values, and buildRow().
Referenced by getArray().
|
protected |
$row | |
$values |
Definition at line 629 of file class.ActiveRecordList.php.
References $key, $records, $res, $row, $values, getAddidtionalParameters(), getAR(), getArConnector(), getDateFormat(), and getRaw().
Referenced by buildArray().
ActiveRecordList::concat | ( | array | $fields, |
$as | |||
) |
array | $fields | |
$as |
Definition at line 336 of file class.ActiveRecordList.php.
References $as, and getArConcatCollection().
ActiveRecordList::connector | ( | arConnector | $connector | ) |
arConnector | $connector |
Definition at line 455 of file class.ActiveRecordList.php.
References $connector.
ActiveRecordList::count | ( | ) |
Definition at line 497 of file class.ActiveRecordList.php.
References affectedRows().
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().
ActiveRecordList::debug | ( | ) |
ActiveRecordList::first | ( | ) |
ActiveRecordList::get | ( | ) |
ActiveRecordList::getAddidtionalParameters | ( | ) |
Definition at line 781 of file class.ActiveRecordList.php.
References $addidtional_parameters.
Referenced by buildRow().
ActiveRecordList::getAR | ( | ) |
Definition at line 718 of file class.ActiveRecordList.php.
References $ar.
Referenced by __construct(), buildRow(), getArConnector(), join(), orderBy(), and arConnectorSession\readSet().
ActiveRecordList::getArConcatCollection | ( | ) |
Definition at line 389 of file class.ActiveRecordList.php.
References $arConcatCollection.
Referenced by concat().
|
protected |
Definition at line 127 of file class.ActiveRecordList.php.
References arConnectorMap\get(), and getAR().
Referenced by affectedRows(), and buildRow().
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().
ActiveRecordList::getArLimitCollection | ( | ) |
Definition at line 380 of file class.ActiveRecordList.php.
References $arLimitCollection.
Referenced by limit().
ActiveRecordList::getArOrderCollection | ( | ) |
Definition at line 371 of file class.ActiveRecordList.php.
References $arOrderCollection.
Referenced by 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 587 of file class.ActiveRecordList.php.
References $key, $values, and buildArray().
ActiveRecordList::getArSelectCollection | ( | ) |
Definition at line 398 of file class.ActiveRecordList.php.
References $arSelectCollection.
Referenced by __construct(), arConnectorDB\buildQuery(), and join().
ActiveRecordList::getArWhereCollection | ( | ) |
Definition at line 353 of file class.ActiveRecordList.php.
References $arWhereCollection.
Referenced by arConnectorSession\readSet(), and where().
ActiveRecordList::getClass | ( | ) |
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.
Referenced by buildRow().
ActiveRecordList::getDebug | ( | ) |
ActiveRecordList::getFirstFromLastQuery | ( | ) |
Definition at line 545 of file class.ActiveRecordList.php.
References $result, and loadLastQuery().
|
static |
Definition at line 763 of file class.ActiveRecordList.php.
ActiveRecordList::getRaw | ( | ) |
Definition at line 799 of file class.ActiveRecordList.php.
References $raw.
Referenced by buildRow().
ActiveRecordList::hasSets | ( | ) |
Definition at line 479 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 324 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 241 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 260 of file class.ActiveRecordList.php.
References $type, getAR(), getArJoinCollection(), getArSelectCollection(), and arException\LIST_JOIN_ON_WRONG_FIELD.
Referenced by innerjoin(), and leftjoin().
ActiveRecordList::last | ( | ) |
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.
ActiveRecordList::limit | ( | $start, | |
$end | |||
) |
$start | |
$end |
arException |
Definition at line 219 of file class.ActiveRecordList.php.
References $end, $start, and getArLimitCollection().
|
protected |
Definition at line 697 of file class.ActiveRecordList.php.
Referenced by getFirstFromLastQuery().
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().
ActiveRecordList::raw | ( | $set_raw = true | ) |
bool | $set_raw |
Definition at line 468 of file class.ActiveRecordList.php.
References setRaw().
Referenced by setRaw().
ActiveRecordList::setAddidtionalParameters | ( | $addidtional_parameters | ) |
array | $addidtional_parameters |
Definition at line 772 of file class.ActiveRecordList.php.
References $addidtional_parameters.
Referenced by additionalParams().
ActiveRecordList::setAR | ( | $ar | ) |
ActiveRecord | $ar |
Definition at line 709 of file class.ActiveRecordList.php.
References $ar.
Referenced by __construct().
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().
|
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().
ActiveRecordList::where | ( | $where, | |
$operator = null |
|||
) |
$where | ||
null | $operator |
Exception |
Definition at line 159 of file class.ActiveRecordList.php.
References getArWhereCollection(), and arWhere\TYPE_STRING.
|
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.
|
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 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().