Generic abstract dependency class.
More...
|
const | DISABLED_CHECKED = 4 |
|
const | DISABLED_EMPTY = 6 |
|
const | DISABLED_FALSE = 3 |
|
const | DISABLED_NOT_CHECKED = 5 |
|
const | DISABLED_NOT_EMPTY = 7 |
|
const | DISABLED_NOT_VALUE = 1 |
|
const | DISABLED_TRUE = 2 |
|
const | DISABLED_VALUE = 0 |
| Used to define the type of a dependency.
|
|
Generic abstract dependency class.
- Copyright
- 2010 Sam Hemelryk
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
◆ destroy()
setting_dependency::destroy |
( |
| ) |
|
Destroy all circular references.
It helps PHP 5.2 a lot!
◆ enforce()
setting_dependency::enforce |
( |
| ) |
|
|
abstract |
◆ get_dependent_setting()
setting_dependency::get_dependent_setting |
( |
| ) |
|
Gets the dependent setting.
- Return values
-
◆ get_moodleform_properties()
setting_dependency::get_moodleform_properties |
( |
| ) |
|
|
abstract |
◆ get_setting()
setting_dependency::get_setting |
( |
| ) |
|
Gets the primary setting.
- Return values
-
◆ is_locked()
setting_dependency::is_locked |
( |
| ) |
|
|
abstract |
◆ process_change()
setting_dependency::process_change |
( |
|
$changetype, |
|
|
|
$oldvalue |
|
) |
| |
|
final |
Processes a change is setting called by the primary setting.
- Parameters
-
int | $changetype | |
mixed | $oldvalue | |
- Return values
-
◆ process_status_change()
setting_dependency::process_status_change |
( |
|
$oldstatus | ) |
|
|
abstractprotected |
◆ process_value_change()
setting_dependency::process_value_change |
( |
|
$oldvalue | ) |
|
|
abstractprotected |
◆ process_visibility_change()
setting_dependency::process_visibility_change |
( |
|
$oldvisibility | ) |
|
|
protected |
Processes a visibility change.
- Parameters
-
- Return values
-
◆ $defaultvalue
mixed setting_dependency::$defaultvalue |
|
protected |
◆ $dependentsetting
The dependent setting (secondary)
◆ $lastvalue
mixed setting_dependency::$lastvalue |
|
protected |
The last value the dependent setting had.
◆ $setting
The parent setting (primary)
◆ DISABLED_VALUE
const setting_dependency::DISABLED_VALUE = 0 |
Used to define the type of a dependency.
Note with these that checked and true, and not checked and false are equal. This is because the terminology differs but the resulting action is the same. Reduces code!
The documentation for this class was generated from the following file: