Moodle  2.2.1
http://www.collinsharper.com
base_final_element Class Reference
Inheritance diagram for base_final_element:
Collaboration diagram for base_final_element:

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)

Detailed Description

Abstract class representing one final element atom (name/value/parent) piece of information

Definition at line 30 of file base_final_element.class.php.


Constructor & Destructor Documentation

__construct ( name,
attributes = null 
)

Constructor - instantiates one base_final_element, specifying its basic info.

Parameters:
string$namename of the element
array$attributesattributes this element will handle (optional, defaults to null)

Definition at line 44 of file base_final_element.class.php.

Here is the call graph for this function:


Member Function Documentation

add_attributes ( attributes)

Reimplemented in backup_optigroup_element, and base_optigroup.

Definition at line 172 of file base_final_element.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in base_nested_element.

Definition at line 194 of file base_final_element.class.php.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

find_first_parent_by_name ( name) [protected]

Definition at line 131 of file base_final_element.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_attribute ( name)

Definition at line 156 of file base_final_element.class.php.

Here is the caller graph for this function:

Public API starts here.

Definition at line 152 of file base_final_element.class.php.

Here is the caller graph for this function:

Definition at line 82 of file base_final_element.class.php.

Here is the caller graph for this function:

get_grandparent ( ) [protected]

Definition at line 73 of file base_final_element.class.php.

Here is the caller graph for this function:

get_level ( )

Reimplemented in backup_optigroup_element, and base_optigroup.

Definition at line 168 of file base_final_element.class.php.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

Definition at line 164 of file base_final_element.class.php.

Here is the caller graph for this function:

set_parent ( element) [protected]

Reimplemented in backup_optigroup_element, and base_optigroup.

Definition at line 62 of file base_final_element.class.php.

Here is the call graph for this function:

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.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations