◆ __construct()
ilTermsOfServiceTableDatabaseDataProvider::__construct |
( |
ilDBInterface |
$db | ) |
|
◆ getFromPart()
ilTermsOfServiceTableDatabaseDataProvider::getFromPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getGroupByPart()
ilTermsOfServiceTableDatabaseDataProvider::getGroupByPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getHavingPart()
ilTermsOfServiceTableDatabaseDataProvider::getHavingPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getList()
ilTermsOfServiceTableDatabaseDataProvider::getList |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
- Parameters
-
array | $params | |
array | $filter | |
- Returns
- array
- Exceptions
-
Implements ilTermsOfServiceTableDataProvider.
Definition at line 81 of file class.ilTermsOfServiceTableDatabaseDataProvider.php.
References $data, $from, $query, $res, $row, array, getFromPart(), getGroupByPart(), getHavingPart(), getOrderByPart(), getSelectPart(), and getWherePart().
96 if (!is_numeric(
$params[
'limit'])) {
100 if (!isset(
$params[
'offset'])) {
102 } elseif (!is_numeric(
$params[
'offset'])) {
109 $where = strlen($where) ?
'WHERE ' . $where :
'';
110 $query =
"SELECT {$select} FROM {$from} {$where}";
112 if (strlen($group)) {
113 $query .=
" GROUP BY {$group}";
116 if (strlen($having)) {
117 $query .=
" HAVING {$having}";
120 if (strlen($order)) {
121 $query .=
" ORDER BY {$order}";
125 while (
$row = $this->db->fetchAssoc(
$res)) {
130 $cnt_sql =
"SELECT COUNT(*) cnt FROM ({$query}) subquery";
131 $row_cnt = $this->db->fetchAssoc($this->db->query($cnt_sql));
132 $data[
'cnt'] = $row_cnt[
'cnt'];
getSelectPart(array $params, array $filter)
getOrderByPart(array $params, array $filter)
getGroupByPart(array $params, array $filter)
getHavingPart(array $params, array $filter)
getFromPart(array $params, array $filter)
foreach($_POST as $key=> $value) $res
getWherePart(array $params, array $filter)
Create styles array
The data for the language used.
◆ getOrderByPart()
ilTermsOfServiceTableDatabaseDataProvider::getOrderByPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getSelectPart()
ilTermsOfServiceTableDatabaseDataProvider::getSelectPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ getWherePart()
ilTermsOfServiceTableDatabaseDataProvider::getWherePart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
abstractprotected |
◆ $db
ilTermsOfServiceTableDatabaseDataProvider::$db |
|
protected |
The documentation for this class was generated from the following file: