Detailed Description
Definition at line 21 of file tag.php.
Member Function Documentation
Sets an attribute.
- Parameters:
-
| string | $label | Attribute name. |
- Returns:
- string $value New attribute value. protected
Definition at line 118 of file tag.php.
Accessor for an attribute.
- Parameters:
-
| string | $label | Attribute name. |
- Returns:
- string Attribute value. public
Definition at line 104 of file tag.php.
List of legal child elements.
- Returns:
- array List of element names. public
Definition at line 94 of file tag.php.
Accessor for the whole content so far.
- Returns:
- string Content as big raw string. public
Definition at line 127 of file tag.php.
Accessor for tag name.
- Returns:
- string Name of tag. public
Definition at line 85 of file tag.php.
Accessor for content reduced to visible text. Acts like a text mode browser, normalising space and reducing images to their alt text.
- Returns:
- string Content as plain text. public
Definition at line 138 of file tag.php.
Test to see if id attribute matches.
- Parameters:
-
| string | $id | ID to test against. |
- Returns:
- boolean True on match. public
Definition at line 148 of file tag.php.
The current tag should not swallow all content for itself as it's searchable page content. Private content tags are usually widgets that contain default values.
- Returns:
- boolean False as content is available to other tags by default. public
Reimplemented in SimpleOptionTag, and SimpleTextAreaTag.
Definition at line 59 of file tag.php.
Starts with a named tag with attributes only.
- Parameters:
-
| string | $name | Tag name. |
| hash | $attributes | Attribute names and string values. Note that the keys must have been converted to lower case. |
Definition at line 34 of file tag.php.
Field Documentation
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/simpletestlib/tag.php