Datamanager 2 Simple boolean datatype.

Storage is done in number format, where 0 is false and 1 is true. When reading the storage, the PHP boolean conversion is used, so other representations (for legacy compatibility) are recognized as well.

Available configuration options:

  • string true_text: The text displayed if the value of the type is true. This defaults to a graphic "checked" icon. Must be valid for usage in convert_to_html.
  • string false_text: The text displayed if the value of the type is false. This defaults to a graphic "not checked" icon. Must be valid for usage in convert_to_html.
package midcom.helper.datamanager2

 Methods

convert_from_csv ($source)

Parameters

$source

convert_from_storage ($source)

Parameters

$source

convert_to_csv ()

convert_to_email ()

convert_to_html ()

The HTML representation returns either the configured texts or a checked / unchecked icon if left on defaults.

convert_to_storage ()

 Properties

 

string $false_text

The text displayed if the value of the type is false.

This defaults to a graphic "not checked" icon. Must be valid for usage in convert_to_html.

 

string $true_text

The text displayed if the value of the type is true.

This defaults to a graphic "checked" icon. Must be valid for usage in convert_to_html.

 

boolean $value

The current value encapsulated by this type.