Class ODD
Open Data Definition (ODD) superclass.
Methods summary
public
|
#
__construct( )
Construct an ODD document with initial values.
Construct an ODD document with initial values.
|
public
array
|
#
getAttributes( )
Returns an array of attributes
Returns an array of attributes
Returns
array
|
public
|
#
setAttribute( string $key, mixed $value )
Sets an attribute
Parameters
- $key
string $key Name
- $value
mixed $value Value
|
public
mixed
|
#
getAttribute( string $key )
Returns an attribute
Parameters
Returns
mixed
|
public
|
#
setBody( mixed $value )
Sets the body of the ODD.
Sets the body of the ODD.
Parameters
|
public
mixed
|
#
getBody( )
Gets the body of the ODD.
Gets the body of the ODD.
Returns
mixed
|
public
|
#
setPublished( integer $time )
Set the published time.
Parameters
- $time
integer $time Unix timestamp
|
public
integer
|
#
getPublishedAsTime( )
Return the published time as a unix timestamp.
Return the published time as a unix timestamp.
Returns
integer or false on failure.
|
abstract protected
string
|
#
getTagName( )
For serialisation, implement to return a string name of the tag eg "header"
or "metadata".
For serialisation, implement to return a string name of the tag eg "header"
or "metadata".
Returns
string
|
public
string
|
#
__toString( )
Magic function to generate valid ODD XML for this item.
Magic function to generate valid ODD XML for this item.
Returns
string
|