eZPublish(LegacyStack)  5.1
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

 $Name
 Contains the Option name. More...
 
 $OptionCount
 Contains the option counter value. More...
 
 $Options
 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,
  $beforeID 
)
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

eZOption::$Name

Contains the Option name.

Referenced by attribute(), and name().

eZOption::$OptionCount

Contains the option counter value.

eZOption::$Options

Contains the Options.

Referenced by attribute().


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