Class Category
conveys information about a category associated with an entry or feed.
-
Gedcomx\Atom\CommonAttributes
-
Gedcomx\Atom\Category
Methods summary
public
|
#
__construct( mixed $o = null )
Constructs a Category from a (parsed) JSON hash
Constructs a Category from a (parsed) JSON hash
Parameters
- $o
- Either an array (JSON) or an XMLReader.
Throws
Exception
Overrides
|
public
string
|
#
getScheme( )
identifies a categorization scheme
identifies a categorization scheme
Returns
string
|
public
|
#
setScheme( string $scheme )
identifies a categorization scheme
identifies a categorization scheme
Parameters
|
public
string
|
#
getTerm( )
identifies the category to which the entry or feed belongs
identifies the category to which the entry or feed belongs
Returns
string
|
public
|
#
setTerm( string $term )
identifies the category to which the entry or feed belongs
identifies the category to which the entry or feed belongs
Parameters
|
public
string
|
#
getLabel( )
a human-readable label for display in end-user applications
a human-readable label for display in end-user applications
Returns
string
|
public
|
#
setLabel( string $label )
a human-readable label for display in end-user applications
a human-readable label for display in end-user applications
Parameters
|
public
array
|
#
toArray( )
Returns the associative array for this Category
Returns the associative array for this Category
Returns
array
Overrides
|
public
|
#
initFromArray( array $o )
Initializes this Category from an associative array
Initializes this Category from an associative array
Parameters
Overrides
|
public
|
#
writeXmlContents( XMLWriter $writer )
Writes the contents of this Category to an XML writer. The startElement is expected to be already provided.
Writes the contents of this Category to an XML writer. The startElement is expected to be already provided.
Parameters
Overrides
|