|
| getSelectPart (array $params, array $filter) |
|
| getFromPart (array $params, array $filter) |
|
| getWherePart (array $params, array $filter) |
|
| getGroupByPart (array $params, array $filter) |
|
| getHavingPart (array $params, array $filter) |
|
| getOrderByPart (array $params, array $filter) |
|
| getSelectPart (array $params, array $filter) |
|
| getFromPart (array $params, array $filter) |
|
| getWherePart (array $params, array $filter) |
|
| getGroupByPart (array $params, array $filter) |
|
| getHavingPart (array $params, array $filter) |
|
| getOrderByPart (array $params, array $filter) |
|
◆ getFromPart()
ilTermsOfServiceAcceptanceHistoryProvider::getFromPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
protected |
- Parameters
-
array | $params | |
array | $filter | |
- Returns
- string
Definition at line 39 of file class.ilTermsOfServiceAcceptanceHistoryProvider.php.
References array.
42 'INNER JOIN tos_acceptance_track ON tos_acceptance_track.usr_id = ud.usr_id',
43 'INNER JOIN tos_versions ON tos_versions.id = tos_acceptance_track.tosv_id',
46 return 'usr_data ud ' . implode(
' ', $joins);
Create styles array
The data for the language used.
◆ getGroupByPart()
ilTermsOfServiceAcceptanceHistoryProvider::getGroupByPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
protected |
◆ getHavingPart()
ilTermsOfServiceAcceptanceHistoryProvider::getHavingPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
protected |
◆ getOrderByPart()
ilTermsOfServiceAcceptanceHistoryProvider::getOrderByPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
protected |
- Parameters
-
array | $params | |
array | $filter | |
- Returns
- string
- Exceptions
-
Definition at line 110 of file class.ilTermsOfServiceAcceptanceHistoryProvider.php.
References array.
112 if(isset(
$params[
'order_field']))
114 if(!is_string(
$params[
'order_field']))
119 if(!in_array(
$params[
'order_field'],
array(
'lng',
'login',
'firstname',
'lastname',
'src',
'ts')))
124 if(
$params[
'order_field'] ==
'ts')
126 $params[
'order_field'] =
'tos_acceptance_track.ts';
129 if(!isset(
$params[
'order_direction']))
131 $params[
'order_direction'] =
'ASC';
133 else if(!in_array(strtolower(
$params[
'order_direction']),
array(
'asc',
'desc')))
Create styles array
The data for the language used.
◆ getSelectPart()
ilTermsOfServiceAcceptanceHistoryProvider::getSelectPart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
protected |
- Parameters
-
array | $params | |
array | $filter | |
- Returns
- string
Definition at line 17 of file class.ilTermsOfServiceAcceptanceHistoryProvider.php.
References array.
20 'tos_acceptance_track.tosv_id',
25 'tos_acceptance_track.ts',
31 return implode(
', ', $fields);
Create styles array
The data for the language used.
◆ getWherePart()
ilTermsOfServiceAcceptanceHistoryProvider::getWherePart |
( |
array |
$params, |
|
|
array |
$filter |
|
) |
| |
|
protected |
- Parameters
-
array | $params | |
array | $filter | |
- Returns
- string
Definition at line 54 of file class.ilTermsOfServiceAcceptanceHistoryProvider.php.
References array.
58 if(isset($filter[
'query']) && strlen($filter[
'query']))
60 $where[] =
'(' . implode(
' OR ',
array(
61 $this->db->like(
'ud.login',
'text',
'%'.$filter[
'query'].
'%'),
62 $this->db->like(
'ud.firstname',
'text',
'%'.$filter[
'query'].
'%'),
63 $this->db->like(
'ud.lastname',
'text',
'%'.$filter[
'query'].
'%'),
64 $this->db->like(
'ud.email',
'text',
'%'.$filter[
'query'].
'%')
68 if(isset($filter[
'lng']) && strlen($filter[
'lng']))
70 $where[] =
'tos_versions.lng = ' . $this->db->quote($filter[
'lng'],
'text');
73 if(isset($filter[
'period']) && is_array($filter[
'period']))
75 $where[] =
'(' . implode(
' AND ',
array(
76 'tos_acceptance_track.ts >= ' . $this->db->quote($filter[
'period'][
'start'],
'integer'),
77 'tos_acceptance_track.ts <= ' . $this->db->quote($filter[
'period'][
'end'],
'integer')
81 return implode(
' AND ', $where);
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: