KWeb
6.4
|
List of checkboxes. More...
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() |
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
KWebAttribute_Checkboxes::__construct | ( | $ | id, |
$ | title, | ||
$ | options, | ||
$ | opt = array() |
||
) |
$options | List of checkboxes as (key => title) |
Reimplemented in KWebAttribute_Linkage, and KWebAttribute_Flags.
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
Reimplemented from KWebAttribute.
Reimplemented in KWebAttribute_Linkage, and KWebAttribute_Flags.
KWebAttribute_Checkboxes::convertData | ( | $ | value, |
$ | format, | ||
$ | conversion | ||
) |
$conversion | true (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.
KWebAttribute_Checkboxes::$options = array() |