Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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.
 
 get_condition ()
 Returns condition.
 
 get_dependantname ()
 Returns name of the element that $element is dependant on.
 
 get_dependantvalue ()
 Returns value to check the $condition against.
 
 get_element ()
 Return name of the element to hide.
 

Protected Attributes

string $condition
 Condition.
 
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: