Jet\Form_Field_Select_Option_Interface

An interface defining the methods needed for an object to suck one of the select options of a form field of type Select, MultiSelect and RadioButton.

The Jet interface implements the Jet\Form_Field_Select_Option class, which normally represents a selection option, but so does the Jet\Data_Tree_Node class.

Methods

Method Meaning of
public setSelectOptionCssStyle(
string $css_style
) : void
Sets the CSS style for the option.
public getSelectOptionCssStyle(
) : string
Returns the set CSS style for the given option.
public setSelectOptionCssClass(
string $css_class
) : void
Sets the CSS classes for the given option.
public getSelectOptionCssClass(
) : string
Returns the CSS classes for the given option.
public getSelectOptionCss(
) : string
Returns prepared HTML parameters style="xxx" and class="xxx"
public __toString(
) : string
The object must be directly convertible to text, which will then represent the option displayed to the user.
Previous chapter
Select options
Next chapter
Jet\Form_Field_Select_Option