13     private $attributes = array();
 
   33         return $this->attributes;
 
   56         if (isset($this->attributes[
$key])) {
 
   57             return $this->attributes[
$key];
 
   91         $this->attributes[
'published'] = date(
"r", $time);
 
  100         return strtotime($this->attributes[
'published']);
 
  118         foreach ($this->attributes as $k => $v) {
 
  119             $attr .= ($v != 
"") ? 
"$k=\"$v\" " : 
"";
 
  127             $end = 
"><![CDATA[$body]]></{$tag}>";
 
  130         return "<{$tag} $attr" . $end . 
"\n";
 
getBody()
Gets the body of the ODD.
 
getTagName()
For serialisation, implement to return a string name of the tag eg "header" or "metadata".
 
getPublishedAsTime()
Return the published time as a unix timestamp.
 
getAttribute($key)
Returns an attribute.
 
__toString()
Magic function to generate valid ODD XML for this item.
 
getAttributes()
Returns an array of attributes.
 
__construct()
Construct an ODD document with initial values.
 
setAttribute($key, $value)
Sets an attribute.
 
setBody($value)
Sets the body of the ODD.
 
setPublished($time)
Set the published time.