|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($name, $attributes=null) | |
| destroy () | |
| get_attributes () | |
| Public API starts here. | |
| get_attribute ($name) | |
| get_parent () | |
| get_level () | |
| add_attributes ($attributes) | |
| clean_values () | |
| to_string ($showvalue=false) | |
Protected Member Functions | |
| set_parent ($element) | |
| get_grandparent () | |
| get_grandoptigroupelement_or_grandparent () | |
| find_element_by_path ($path) | |
| find_first_parent_by_name ($name) | |
| get_new_attribute ($name) | |
Abstract class representing one final element atom (name/value/parent) piece of information
Definition at line 30 of file base_final_element.class.php.
| __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) |
Definition at line 44 of file base_final_element.class.php.

| add_attributes | ( | $ | attributes | ) |
Reimplemented in backup_optigroup_element, and base_optigroup.
Definition at line 172 of file base_final_element.class.php.


| clean_values | ( | ) |
Reimplemented in base_nested_element.
Definition at line 194 of file base_final_element.class.php.

| destroy | ( | ) |
Destroy all circular references. It helps PHP 5.2 a lot!
Reimplemented in base_nested_element.
Definition at line 56 of file base_final_element.class.php.
| find_element_by_path | ( | $ | path | ) | [protected] |
Definition at line 93 of file base_final_element.class.php.


| find_first_parent_by_name | ( | $ | name | ) | [protected] |
Definition at line 131 of file base_final_element.class.php.


| get_attribute | ( | $ | name | ) |
Definition at line 156 of file base_final_element.class.php.

| get_attributes | ( | ) |
Public API starts here.
Definition at line 152 of file base_final_element.class.php.

| get_grandoptigroupelement_or_grandparent | ( | ) | [protected] |
Definition at line 82 of file base_final_element.class.php.

| get_grandparent | ( | ) | [protected] |
Definition at line 73 of file base_final_element.class.php.

| get_level | ( | ) |
Reimplemented in backup_optigroup_element, and base_optigroup.
Definition at line 168 of file base_final_element.class.php.

| get_new_attribute | ( | $ | name | ) | [abstract, protected] |
Returns one instace of the class to work with when attributes are added simply by name
Reimplemented in backup_nested_element, backup_optigroup_element, base_optigroup, backup_final_element, mock_base_optigroup, mock_base_nested_element, and mock_base_final_element.

| get_parent | ( | ) |
Definition at line 164 of file base_final_element.class.php.

| set_parent | ( | $ | element | ) | [protected] |
Reimplemented in backup_optigroup_element, and base_optigroup.
Definition at line 62 of file base_final_element.class.php.

| to_string | ( | $ | showvalue = false | ) |
Reimplemented from base_atom.
Reimplemented in base_nested_element, and base_optigroup.
Definition at line 203 of file base_final_element.class.php.
