KWeb  6.4
KWebAttribute_Checkboxes Class Reference

List of checkboxes. More...

Inheritance diagram for KWebAttribute_Checkboxes:
KWebAttribute KWebAttribute_Interface KWebAttribute_Flags KWebAttribute_Linkage

Public Member Functions

 __construct ($id, $title, $options, $opt=array())
 getType ()
 Zwraca nazwę typu .
 convertData ($value, $format, $conversion)
 checkValue (KWebObject_Attributable $object, &$value, $lang=false)
 Checks the value for correctness.

Data Fields

 $options = array()

Detailed Description

List of checkboxes.

Checkboxes are stored in a value as a hashmap (key => true/false).

By default, checkboxes are converted to/from strings and SQL with convert_checkbox


Constructor & Destructor Documentation

KWebAttribute_Checkboxes::__construct ( id,
title,
options,
opt = array() 
)
Parameters:
$optionsList of checkboxes as (key => title)

Reimplemented in KWebAttribute_Linkage, and KWebAttribute_Flags.


Member Function Documentation

KWebAttribute_Checkboxes::checkValue ( KWebObject_Attributable object,
&$  value,
lang = false 
)

Checks the value for correctness.

Value is in FORMAT_INTERNAL. In case of severe problem, an Exception may be thrown Value may be altered if necessary

Returns:
TRUE if the value is ok

Reimplemented from KWebAttribute.

Reimplemented in KWebAttribute_Linkage, and KWebAttribute_Flags.

KWebAttribute_Checkboxes::convertData ( value,
format,
conversion 
)
Parameters:
$conversiontrue (CONVERT_TO) - dane mają być pokazane W formularzu, false (CONVERT_FROM) - dane pochodzą Z formularza

Reimplemented from KWebAttribute.

KWebAttribute_Checkboxes::getType ( )

Zwraca nazwę typu .

Reimplemented from KWebAttribute.

Reimplemented in KWebAttribute_Flags, and KWebAttribute_Linkage.


Field Documentation

KWebAttribute_Checkboxes::$options = array()

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