Access date filter.
More...
|
const | ANYVALUE = '__ANYVALUE__' |
| Any Value.
|
|
const | FILTER_ACCOUNT_CREATION = 'tool_usertours_accountcreation' |
| Access date filtering constant for setting base date as account creation date.
|
|
const | FILTER_ENABLED_DEFAULT = 0 |
| Default this filter to not be enabled.
|
|
const | FILTER_FIRST_LOGIN = 'tool_usertours_firstlogin' |
| Access date filtering constant for setting base date as account first login date.
|
|
const | FILTER_LAST_LOGIN = 'tool_usertours_lastlogin' |
| Access date filtering constant for setting base date as account last login date.
|
|
Access date filter.
Used to determine if USER should see a tour based on a particular access date.
- Copyright
- 2019 Tom Dickman tomdi.nosp@m.ckma.nosp@m.n@cat.nosp@m.alys.nosp@m.t-au..nosp@m.net
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ add_filter_to_form()
static tool_usertours\local\filter\accessdate::add_filter_to_form |
( |
\MoodleQuickForm & |
$mform | ) |
|
|
static |
◆ filter_matches()
static tool_usertours\local\filter\accessdate::filter_matches |
( |
tour |
$tour, |
|
|
context |
$context |
|
) |
| |
|
static |
Check whether the filter matches the specified tour and/or context.
- Parameters
-
tour | $tour | The tour to check |
context | $context | The context to check |
- Return values
-
Reimplemented from tool_usertours\local\filter\base.
◆ get_filter_name()
static tool_usertours\local\filter\accessdate::get_filter_name |
( |
| ) |
|
|
static |
◆ get_filter_options()
static tool_usertours\local\filter\accessdate::get_filter_options |
( |
| ) |
|
|
static |
Retrieve the list of available filter options.
- Return values
-
array | An array whose keys are the valid options And whose values are the values to display |
- Exceptions
-
Reimplemented from tool_usertours\local\filter\base.
◆ prepare_filter_values_for_form()
static tool_usertours\local\filter\accessdate::prepare_filter_values_for_form |
( |
tour |
$tour, |
|
|
stdClass |
$data |
|
) |
| |
|
static |
Prepare the filter values for the form.
- Parameters
-
tour | $tour | The tour to prepare values from |
stdClass | $data | The data value |
- Return values
-
Reimplemented from tool_usertours\local\filter\base.
◆ save_filter_values_from_form()
static tool_usertours\local\filter\accessdate::save_filter_values_from_form |
( |
tour |
$tour, |
|
|
stdClass |
$data |
|
) |
| |
|
static |
Save the filter values from the form to the tour.
- Parameters
-
tour | $tour | The tour to save values to |
stdClass | $data | The data submitted in the form |
Reimplemented from tool_usertours\local\filter\base.
The documentation for this class was generated from the following file: