4 require_once
'Services/TermsOfService/interfaces/interface.ilTermsOfServiceTableDataProvider.php';
95 if(isset($params[
'limit']))
97 if(!is_numeric($params[
'limit']))
102 if(!isset($params[
'offset']))
104 $params[
'offset'] = 0;
106 else if(!is_numeric($params[
'offset']))
111 $this->db->setLimit($params[
'limit'], $params[
'offset']);
114 $where = strlen($where) ?
'WHERE ' . $where :
'';
115 $query =
"SELECT {$select} FROM {$from} {$where}";
119 $query .=
" GROUP BY {$group}";
124 $query .=
" HAVING {$having}";
129 $query .=
" ORDER BY {$order}";
133 while(
$row = $this->db->fetchAssoc(
$res))
138 if(isset($params[
'limit']))
140 $cnt_sql =
"SELECT COUNT(*) cnt FROM ({$query}) subquery";
141 $row_cnt = $this->db->fetchAssoc($this->db->query($cnt_sql));
142 $data[
'cnt'] = $row_cnt[
'cnt'];
getSelectPart(array $params, array $filter)
getOrderByPart(array $params, array $filter)
getList(array $params, array $filter)
getGroupByPart(array $params, array $filter)
__construct(ilDBInterface $db)
ilTermsOfServiceTableDatabaseDataProvider constructor.
getHavingPart(array $params, array $filter)
getFromPart(array $params, array $filter)
getWherePart(array $params, array $filter)
Create styles array
The data for the language used.