Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
base_atom Class Reference

Abstract class representing one atom (name/value) piece of information. More...

Inheritance diagram for base_atom:

Public Member Functions

 __construct ($name)
 Constructor - instantiates one base_atom, specifying its basic info.
 
 clean_value ()
 
 get_name ()
 Public API starts here.
 
 get_value ()
 
 is_set ()
 
 set_value ($value)
 
 to_string ($showvalue=false)
 

Protected Member Functions

 validate_name ($name)
 

Detailed Description

Abstract class representing one atom (name/value) piece of information.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

TODO: Finish phpdocs

Constructor & Destructor Documentation

◆ __construct()

base_atom::__construct ( $name)

Constructor - instantiates one base_atom, specifying its basic info.

Parameters
string$namename of the element
string$valueoptional value of the element

Member Function Documentation

◆ set_value()

base_atom::set_value ( $value)

The documentation for this class was generated from the following file: