|
| getTagName () |
| For serialisation, implement to return a string name of the tag eg "header" or "metadata". More...
|
|
Definition at line 9 of file ODD.php.
◆ __construct()
Construct an ODD document with initial values.
Definition at line 23 of file ODD.php.
◆ __toString()
Magic function to generate valid ODD XML for this item.
- Returns
- string
Definition at line 115 of file ODD.php.
◆ getAttribute()
ODD::getAttribute |
( |
|
$key | ) |
|
Returns an attribute.
- Parameters
-
- Returns
- mixed
Definition at line 55 of file ODD.php.
◆ getAttributes()
Returns an array of attributes.
- Returns
- array
Definition at line 32 of file ODD.php.
◆ getBody()
Gets the body of the ODD.
- Returns
- mixed
Definition at line 79 of file ODD.php.
◆ getPublishedAsTime()
ODD::getPublishedAsTime |
( |
| ) |
|
Return the published time as a unix timestamp.
- Returns
- int or false on failure.
Definition at line 99 of file ODD.php.
◆ getTagName()
◆ setAttribute()
ODD::setAttribute |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
Sets an attribute.
- Parameters
-
string | $key | Name |
mixed | $value | Value |
- Returns
- void
Definition at line 44 of file ODD.php.
◆ setBody()
Sets the body of the ODD.
- Parameters
-
- Returns
- void
Definition at line 70 of file ODD.php.
◆ setPublished()
ODD::setPublished |
( |
|
$time | ) |
|
Set the published time.
- Parameters
-
- Returns
- void
Definition at line 90 of file ODD.php.
The documentation for this class was generated from the following file: