eZPublishCommunityProject(LegacyStack)  2013.6
eZOption Class Reference

eZOption handles option set datatypes More...

Public Member Functions

 addOption ($valueArray)
 attribute ($name)
 attributes ()
 decodeXML ($xmlString)
 eZOption ($name)
 hasAttribute ($name)
 insertOption ($valueArray, $beforeID)
 name ()
 removeOptions ($array_remove)
 setName ($name)
 xmlString ()

Public Attributes

 Contains the Option name. More...
 Contains the option counter value. More...
 Contains the Options. More...

Detailed Description

eZOption handles option set datatypes

$option = new eZOption( "Colour" );
$option->addValue( "Red" );
$option->addValue( "Green" );
// Serialize the class to an XML document
$xmlString = $option->xmlString();

Member Function Documentation

eZOption::addOption (   $valueArray)

Adds an option

Referenced by decodeXML().

eZOption::attribute (   $name)
eZOption::attributes ( )

Referenced by hasAttribute().

eZOption::decodeXML (   $xmlString)

Will decode an xml string and initialize the eZ option object

eZOption::eZOption (   $name)
eZOption::hasAttribute (   $name)
eZOption::insertOption (   $valueArray,
eZOption::name ( )

Returns the name of the option set.

eZOption::removeOptions (   $array_remove)
eZOption::setName (   $name)

Sets the name of the option

Referenced by decodeXML(), and eZOptionType\initializeObjectAttribute().

eZOption::xmlString ( )

Will return the XML string for this option set.

Member Data Documentation


Contains the Option name.

Referenced by attribute(), and name().


Contains the option counter value.


Contains the Options.

Referenced by attribute().

The documentation for this class was generated from the following file: