Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Attributes | List of all members
quizaccess_seb\hideif_rule Class Reference

Class to store data for "hide if" rules for the settings form. More...

Public Member Functions

 __construct (string $element, string $dependantname, string $condition, string $dependantvalue)
 Constructor. More...
 
 get_condition ()
 Returns condition. More...
 
 get_dependantname ()
 Returns name of the element that $element is dependant on. More...
 
 get_dependantvalue ()
 Returns value to check the $condition against. More...
 
 get_element ()
 Return name of the element to hide. More...
 

Protected Attributes

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.
 

Detailed Description

Class to store data for "hide if" rules for the settings form.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

quizaccess_seb\hideif_rule::__construct ( string  $element,
string  $dependantname,
string  $condition,
string  $dependantvalue 
)

Constructor.

Parameters
string$elementName of the element to hide.
string$dependantnameName of the element that $element is dependant on.
string$conditionCondition. E.g. 'eq', 'noteq' and etc.
string$dependantvalueValue to check the $condition against.

Member Function Documentation

◆ get_condition()

quizaccess_seb\hideif_rule::get_condition ( )

Returns condition.

E.g. 'eq', 'noteq' and etc

Return values
string

◆ get_dependantname()

quizaccess_seb\hideif_rule::get_dependantname ( )

Returns name of the element that $element is dependant on.

Return values
string

◆ get_dependantvalue()

quizaccess_seb\hideif_rule::get_dependantvalue ( )

Returns value to check the $condition against.

Return values
string

◆ get_element()

quizaccess_seb\hideif_rule::get_element ( )

Return name of the element to hide.

Return values
string

Member Data Documentation

◆ $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: