[TYPO3-dev] Get value bits from checkbox array
Steffen Kamper
info at sk-typo3.de
Mon Jun 14 12:19:37 CEST 2010
Hi,
Stefan Frömken schrieb:
> In my extension I have 4 checkboxes in my flexform
>
> Checkbox1 value 1
> Checkbox2 value 2
> Checkbox3 value 3
> Checkbox4 value 4
>
> In database I found a value of 8.
>
> OK...I know how the binary system works. So 8 meens that my checkbox4
> was checked.
>
> But before I programm such a converting tool on my self I want to ask
> you if there was such a function in TYPO3 included allready.
>
in TCEforms this is done in function checkBoxParams beside other things.
Imho there should be something for bit calculating in t3lib_div, but
it's missing.
vg Steffen
More information about the TYPO3-dev
mailing list