silverorange Code


Swat.SwatOption
/Swat/SwatOption.php at line 14

Class SwatOption

SwatObject
└─SwatOption

public class SwatOption
extends SwatObject

A simple class for storing options used in various Swat controls

Copyright:
2005-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
string

$content_type

Optional content type for title.

string

$title

Option title.

mixed

$value

Option value.

Constructor Summary

SwatOption(mixed value, string title, string content_type)

Creates an option.

Field Detail

/Swat/SwatOption.php at line 32

content_type

public string $content_type = 'text/plain'

Optional content type for title

Default text/plain, use text/xml for XHTML fragments.


/Swat/SwatOption.php at line 23

title

public string $title = null

Option title


/Swat/SwatOption.php at line 39

value

public mixed $value = null

Option value


Constructor Detail

/Swat/SwatOption.php at line 53

SwatOption

public SwatOption(mixed value, string title, string content_type)

Creates an option

Parameters:
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'.

silverorange Code