This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
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 Class ilAccessibilityTableDatabaseDataProvider
Definition at line 22 of file class.ilAccessibilityTableDatabaseDataProvider.php.
◆ __construct()
ilAccessibilityTableDatabaseDataProvider::__construct |
( |
ilDBInterface |
$db | ) |
|
◆ getFromPart()
ilAccessibilityTableDatabaseDataProvider::getFromPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getGroupByPart()
ilAccessibilityTableDatabaseDataProvider::getGroupByPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getHavingPart()
ilAccessibilityTableDatabaseDataProvider::getHavingPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getList()
ilAccessibilityTableDatabaseDataProvider::getList |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
- Exceptions
-
Implements ilAccessibilityTableDataProvider.
Definition at line 46 of file class.ilAccessibilityTableDatabaseDataProvider.php.
References $data, $res, getFromPart(), getGroupByPart(), getHavingPart(), getOrderByPart(), getSelectPart(), and getWherePart().
61 if (!is_numeric(
$params[
'limit'])) {
65 if (!isset(
$params[
'offset'])) {
68 if (!is_numeric(
$params[
'offset'])) {
76 $where = strlen($where) ?
'WHERE ' . $where :
'';
77 $query =
"SELECT {$select} FROM {$from} {$where}";
80 $query .=
" GROUP BY {$group}";
83 if (strlen($having)) {
84 $query .=
" HAVING {$having}";
88 $query .=
" ORDER BY {$order}";
91 $res = $this->db->query($query);
92 while ($row = $this->db->fetchAssoc(
$res)) {
93 $data[
'items'][] = $row;
97 $cnt_sql =
"SELECT COUNT(*) cnt FROM ({$query}) subquery";
98 $row_cnt = $this->db->fetchAssoc($this->db->query($cnt_sql));
99 $data[
'cnt'] = $row_cnt[
'cnt'];
getHavingPart(array $params, array $filter)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
getSelectPart(array $params, array $filter)
getOrderByPart(array $params, array $filter)
getWherePart(array $params, array $filter)
getFromPart(array $params, array $filter)
getGroupByPart(array $params, array $filter)
◆ getOrderByPart()
ilAccessibilityTableDatabaseDataProvider::getOrderByPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getSelectPart()
ilAccessibilityTableDatabaseDataProvider::getSelectPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getWherePart()
ilAccessibilityTableDatabaseDataProvider::getWherePart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ $db
The documentation for this class was generated from the following file: