Class to store data for "hide if" rules for the settings form.
More...
|
string | $condition |
| Condition. More...
|
|
string | $dependantname |
| Name of the element that $element is dependant on.
|
|
string | $dependantvalue |
| Value to check the $condition against.
|
|
string | $element |
| Name of the element to hide.
|
|
Class to store data for "hide if" rules for the settings form.
- Copyright
- 2020 Catalyst IT
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
quizaccess_seb\hideif_rule::__construct |
( |
string |
$element, |
|
|
string |
$dependantname, |
|
|
string |
$condition, |
|
|
string |
$dependantvalue |
|
) |
| |
Constructor.
- Parameters
-
string | $element | Name of the element to hide. |
string | $dependantname | Name of the element that $element is dependant on. |
string | $condition | Condition. E.g. 'eq', 'noteq' and etc. |
string | $dependantvalue | Value to check the $condition against. |
◆ get_condition()
quizaccess_seb\hideif_rule::get_condition |
( |
| ) |
|
Returns condition.
E.g. 'eq', 'noteq' and etc
- Return values
-
◆ get_dependantname()
quizaccess_seb\hideif_rule::get_dependantname |
( |
| ) |
|
Returns name of the element that $element is dependant on.
- Return values
-
◆ get_dependantvalue()
quizaccess_seb\hideif_rule::get_dependantvalue |
( |
| ) |
|
Returns value to check the $condition against.
- Return values
-
◆ get_element()
quizaccess_seb\hideif_rule::get_element |
( |
| ) |
|
Return name of the element to hide.
- Return values
-
◆ $condition
string quizaccess_seb\hideif_rule::$condition |
|
protected |
Condition.
E.g. 'eq', 'noteq' and etc.
The documentation for this class was generated from the following file: