Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Abstract class representing one final element atom (name/value/parent) piece of information. More...
Public Member Functions | |
__construct ($name, $attributes=null) | |
Constructor - instantiates one base_final_element, specifying its basic info. | |
add_attributes ($attributes) | |
clean_value () | |
clean_values () | |
destroy () | |
Destroy all circular references. | |
get_attribute ($name) | |
get_attributes () | |
Public API starts here. | |
get_level () | |
get_name () | |
Public API starts here. | |
get_parent () | |
get_value () | |
is_set () | |
set_value ($value) | |
to_string ($showvalue=false) | |
Protected Member Functions | |
find_element_by_path ($path) | |
find_first_parent_by_name ($name) | |
get_grandoptigroupelement_or_grandparent () | |
get_grandparent () | |
get_new_attribute ($name) | |
Returns one instace of the @base_attribute class to work with when attributes are added simply by name. | |
set_parent ($element) | |
validate_name ($name) | |
Abstract class representing one final element atom (name/value/parent) piece of information.
base_final_element::__construct | ( | $name, | |
$attributes = null ) |
Constructor - instantiates one base_final_element, specifying its basic info.
string | $name | name of the element |
array | $attributes | attributes this element will handle (optional, defaults to null) |
Reimplemented in encrypted_final_element.
base_final_element::add_attributes | ( | $attributes | ) |
Reimplemented in backup_optigroup_element, and base_optigroup.
base_final_element::destroy | ( | ) |
base_final_element::get_level | ( | ) |
Reimplemented in backup_optigroup_element, and base_optigroup.
|
abstractprotected |
Returns one instace of the @base_attribute class to work with when attributes are added simply by name.
Reimplemented in backup_final_element, backup_nested_element, backup_optigroup_element, and base_optigroup.
|
protected |
Reimplemented in backup_optigroup_element, and base_optigroup.
|
inherited |
Reimplemented in base64_encode_final_element, and encrypted_final_element.
base_final_element::to_string | ( | $showvalue = false | ) |
Reimplemented from base_atom.