Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: