ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ActiveRecord $activeRecord) | |
PhpFieldAssignmentTypeMismatchInspection More... | |
additionalParams (array $additional_params) | |
where ($where, $operator=null) | |
orderBy (string $order_by, string $order_direction='ASC') | |
limit (int $start, int $end) | |
innerjoinAR (ActiveRecord $activeRecord, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false) | |
leftjoin (string $tablename, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false) | |
innerjoin (string $tablename, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false) | |
concat (array $fields, string $as) | |
getArWhereCollection () | |
getArJoinCollection () | |
getArOrderCollection () | |
getArLimitCollection () | |
getArConcatCollection () | |
getArSelectCollection () | |
getArHavingCollection () | |
setArHavingCollection (\arHavingCollection $arHavingCollection) | |
dateFormat (string $date_format='d.m.Y - H:i:s') | |
debug () | |
connector (arConnector $arConnector) | |
raw (bool $set_raw=true) | |
hasSets () | |
affectedRows () | |
count () | |
getCollection () | |
setClass (string $class) | |
getClass () | |
get () | |
getFirstFromLastQuery () | |
first () | |
last () | |
getArray (?string $key=null, string|array|null $values=null) | |
setAR (\ActiveRecord $activeRecord) | |
getAR () | |
getDebug () | |
setDateFormat (string $date_format) | |
getDateFormat () | |
setAddidtionalParameters (array $addidtional_parameters) | |
getAddidtionalParameters () | |
setRaw (bool $raw) | |
getRaw () | |
Static Public Member Functions | |
static | setLastQuery (string $last_query) |
static | getLastQuery () |
Protected Member Functions | |
getArConnector () | |
join (string $type, string $tablename, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false) | |
buildArray (?string $key, $values) | |
buildRow (?array $row, $values) | |
loadLastQuery () | |
Protected Attributes | |
arWhereCollection | $arWhereCollection |
arJoinCollection | $arJoinCollection |
arOrderCollection | $arOrderCollection |
arLimitCollection | $arLimitCollection |
arConcatCollection | $arConcatCollection |
arSelectCollection | $arSelectCollection |
arHavingCollection | $arHavingCollection |
bool | $loaded = false |
string | $class = '' |
array | $result = [] |
array | $result_array = [] |
bool | $debug = false |
string | $date_format = null |
array | $addidtional_parameters = [] |
arConnector | $connector = null |
ActiveRecord | $ar = null |
bool | $raw = false |
Static Protected Attributes | |
static string | $last_query = null |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning@noinspection NullPointerExceptionInspection NullPointerExceptionInspection NullPointerExceptionInspection NullPointerExceptionInspection Class ActiveRecordList
Definition at line 29 of file class.ActiveRecordList.php.
ActiveRecordList::__construct | ( | ActiveRecord | $activeRecord | ) |
PhpFieldAssignmentTypeMismatchInspection
Definition at line 56 of file class.ActiveRecordList.php.
References getAR(), getArSelectCollection(), ActiveRecord\getConnectorContainerName(), and setAR().
ActiveRecordList::additionalParams | ( | array | $additional_params | ) |
Definition at line 79 of file class.ActiveRecordList.php.
References setAddidtionalParameters().
ActiveRecordList::affectedRows | ( | ) |
Definition at line 349 of file class.ActiveRecordList.php.
References getArConnector().
Referenced by count(), and hasSets().
|
protected |
int | string | array | null | $values |
Exception |
Definition at line 431 of file class.ActiveRecordList.php.
References $result_array, buildRow(), and null.
Referenced by getArray().
|
protected |
string | array | null | $values |
Definition at line 455 of file class.ActiveRecordList.php.
References getAddidtionalParameters(), getAR(), getArConnector(), getDateFormat(), getRaw(), and null.
Referenced by buildArray().
ActiveRecordList::concat | ( | array | $fields, |
string | $as | ||
) |
$as |
Definition at line 264 of file class.ActiveRecordList.php.
References getArConcatCollection().
ActiveRecordList::connector | ( | arConnector | $arConnector | ) |
Definition at line 330 of file class.ActiveRecordList.php.
ActiveRecordList::count | ( | ) |
Definition at line 354 of file class.ActiveRecordList.php.
References affectedRows().
ActiveRecordList::dateFormat | ( | string | $date_format = 'd.m.Y - H:i:s' | ) |
Definition at line 314 of file class.ActiveRecordList.php.
References setDateFormat().
ActiveRecordList::debug | ( | ) |
Definition at line 322 of file class.ActiveRecordList.php.
ActiveRecordList::first | ( | ) |
Definition at line 396 of file class.ActiveRecordList.php.
ActiveRecordList::get | ( | ) |
ActiveRecordList::getAddidtionalParameters | ( | ) |
Definition at line 568 of file class.ActiveRecordList.php.
References $addidtional_parameters.
Referenced by buildRow().
ActiveRecordList::getAR | ( | ) |
Definition at line 527 of file class.ActiveRecordList.php.
References $ar.
Referenced by __construct(), arConnectorDB\buildQuery(), buildRow(), getArConnector(), join(), and arConnectorSession\readSet().
ActiveRecordList::getArConcatCollection | ( | ) |
Definition at line 294 of file class.ActiveRecordList.php.
References $arConcatCollection.
Referenced by arConnectorDB\buildQuery(), and concat().
|
protected |
Definition at line 74 of file class.ActiveRecordList.php.
References arConnectorMap\get(), and getAR().
Referenced by affectedRows(), and buildRow().
ActiveRecordList::getArHavingCollection | ( | ) |
Definition at line 304 of file class.ActiveRecordList.php.
References $arHavingCollection.
Referenced by arConnectorDB\buildQuery().
ActiveRecordList::getArJoinCollection | ( | ) |
Definition at line 279 of file class.ActiveRecordList.php.
References $arJoinCollection.
Referenced by arConnectorDB\buildQuery(), and join().
ActiveRecordList::getArLimitCollection | ( | ) |
Definition at line 289 of file class.ActiveRecordList.php.
References $arLimitCollection.
Referenced by arConnectorDB\buildQuery(), and limit().
ActiveRecordList::getArOrderCollection | ( | ) |
Definition at line 284 of file class.ActiveRecordList.php.
References $arOrderCollection.
Referenced by arConnectorDB\buildQuery(), and orderBy().
string | null | $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 419 of file class.ActiveRecordList.php.
References buildArray().
ActiveRecordList::getArSelectCollection | ( | ) |
Definition at line 299 of file class.ActiveRecordList.php.
References $arSelectCollection.
Referenced by __construct(), arConnectorDB\buildQuery(), and join().
ActiveRecordList::getArWhereCollection | ( | ) |
Definition at line 274 of file class.ActiveRecordList.php.
References $arWhereCollection.
Referenced by arConnectorDB\buildQuery(), arConnectorSession\readSet(), and where().
ActiveRecordList::getClass | ( | ) |
ActiveRecordList::getCollection | ( | ) |
Definition at line 359 of file class.ActiveRecordList.php.
ActiveRecordList::getDateFormat | ( | ) |
Definition at line 542 of file class.ActiveRecordList.php.
Referenced by buildRow().
ActiveRecordList::getDebug | ( | ) |
ActiveRecordList::getFirstFromLastQuery | ( | ) |
Definition at line 387 of file class.ActiveRecordList.php.
References loadLastQuery().
|
static |
Definition at line 552 of file class.ActiveRecordList.php.
ActiveRecordList::getRaw | ( | ) |
Definition at line 578 of file class.ActiveRecordList.php.
References $raw.
Referenced by buildRow().
ActiveRecordList::hasSets | ( | ) |
Definition at line 344 of file class.ActiveRecordList.php.
References affectedRows().
ActiveRecordList::innerjoin | ( | string | $tablename, |
$on_this, | |||
string | $on_external, | ||
array | $fields = ['*'] , |
||
string | $operator = '=' , |
||
bool | $both_external = false |
||
) |
$tablename | |
$on_this | |
$on_external |
Definition at line 250 of file class.ActiveRecordList.php.
References join(), and arJoin\TYPE_INNER.
Referenced by innerjoinAR().
ActiveRecordList::innerjoinAR | ( | ActiveRecord | $activeRecord, |
$on_this, | |||
string | $on_external, | ||
array | $fields = ['*'] , |
||
string | $operator = '=' , |
||
bool | $both_external = false |
||
) |
$on_this | |
$on_external |
Definition at line 163 of file class.ActiveRecordList.php.
References ActiveRecord\getConnectorContainerName(), and innerjoin().
|
protected |
$tablename | |
$on_this | |
$on_external |
arException |
Definition at line 187 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 405 of file class.ActiveRecordList.php.
ActiveRecordList::leftjoin | ( | string | $tablename, |
$on_this, | |||
string | $on_external, | ||
array | $fields = ['*'] , |
||
string | $operator = '=' , |
||
bool | $both_external = false |
||
) |
$tablename | |
$on_this | |
$on_external |
Definition at line 234 of file class.ActiveRecordList.php.
References join(), and arJoin\TYPE_LEFT.
ActiveRecordList::limit | ( | int | $start, |
int | $end | ||
) |
$start | |
$end |
arException |
Definition at line 148 of file class.ActiveRecordList.php.
References getArLimitCollection().
|
protected |
Definition at line 517 of file class.ActiveRecordList.php.
Referenced by getFirstFromLastQuery().
ActiveRecordList::orderBy | ( | string | $order_by, |
string | $order_direction = 'ASC' |
||
) |
$order_by |
arException |
Definition at line 133 of file class.ActiveRecordList.php.
References getArOrderCollection().
ActiveRecordList::raw | ( | bool | $set_raw = true | ) |
Definition at line 337 of file class.ActiveRecordList.php.
References setRaw().
Referenced by setRaw().
ActiveRecordList::setAddidtionalParameters | ( | array | $addidtional_parameters | ) |
mixed[] | $addidtional_parameters |
Definition at line 560 of file class.ActiveRecordList.php.
References $addidtional_parameters.
Referenced by additionalParams().
ActiveRecordList::setAR | ( | \ActiveRecord | $activeRecord | ) |
Definition at line 522 of file class.ActiveRecordList.php.
Referenced by __construct().
ActiveRecordList::setArHavingCollection | ( | \arHavingCollection | $arHavingCollection | ) |
Definition at line 309 of file class.ActiveRecordList.php.
References $arHavingCollection.
ActiveRecordList::setClass | ( | string | $class | ) |
Definition at line 364 of file class.ActiveRecordList.php.
ActiveRecordList::setDateFormat | ( | string | $date_format | ) |
Definition at line 537 of file class.ActiveRecordList.php.
References $date_format.
Referenced by dateFormat().
|
static |
Definition at line 547 of file class.ActiveRecordList.php.
References $last_query.
Referenced by arConnectorDB\buildQuery().
ActiveRecordList::setRaw | ( | bool | $raw | ) |
Definition at line 573 of file class.ActiveRecordList.php.
Referenced by raw().
ActiveRecordList::where | ( | $where, | |
$operator = null |
|||
) |
$where | ||
null | $operator |
Exception |
Definition at line 96 of file class.ActiveRecordList.php.
References getArWhereCollection(), and arWhere\TYPE_STRING.
|
protected |
Definition at line 47 of file class.ActiveRecordList.php.
Referenced by getAddidtionalParameters(), and setAddidtionalParameters().
|
protected |
Definition at line 50 of file class.ActiveRecordList.php.
Referenced by getAR().
|
protected |
Definition at line 35 of file class.ActiveRecordList.php.
Referenced by getArConcatCollection().
|
protected |
Definition at line 37 of file class.ActiveRecordList.php.
Referenced by getArHavingCollection(), and setArHavingCollection().
|
protected |
Definition at line 32 of file class.ActiveRecordList.php.
Referenced by getArJoinCollection().
|
protected |
Definition at line 34 of file class.ActiveRecordList.php.
Referenced by getArLimitCollection().
|
protected |
Definition at line 33 of file class.ActiveRecordList.php.
Referenced by getArOrderCollection().
|
protected |
Definition at line 36 of file class.ActiveRecordList.php.
Referenced by getArSelectCollection().
|
protected |
Definition at line 31 of file class.ActiveRecordList.php.
Referenced by getArWhereCollection().
|
protected |
Definition at line 39 of file class.ActiveRecordList.php.
Referenced by getClass().
|
protected |
Definition at line 49 of file class.ActiveRecordList.php.
|
protected |
Definition at line 46 of file class.ActiveRecordList.php.
Referenced by setDateFormat().
|
protected |
Definition at line 45 of file class.ActiveRecordList.php.
Referenced by getDebug().
|
staticprotected |
Definition at line 48 of file class.ActiveRecordList.php.
Referenced by setLastQuery().
|
protected |
Definition at line 38 of file class.ActiveRecordList.php.
|
protected |
Definition at line 51 of file class.ActiveRecordList.php.
|
protected |
Definition at line 43 of file class.ActiveRecordList.php.
Referenced by get().
|
protected |
Definition at line 44 of file class.ActiveRecordList.php.
Referenced by buildArray().