SwatObject
└─SwatOption
public class SwatOption
extends SwatObject
| Field Summary | |
|---|---|
| string | Optional content type for title. |
| string | Option title. |
| mixed | Option value. |
| Constructor Summary | |
|---|---|
SwatOption(mixed value, string title, string content_type) Creates an option. |
|
public string $content_type = 'text/plain'
Optional content type for title
Default text/plain, use text/xml for XHTML fragments.
public string $title = null
Option title
public mixed $value = null
Option value
public SwatOption(mixed value, string title, string content_type)
Creates an option
value - the value of this option.title - the user visible title of this option.content_type - an optional content type of for this option's title. The content type defaults to 'text/plain'.
A simple class for storing options used in various Swat controls