History log of /dokuwiki/inc/Form/OptGroup.php (Results 1 – 11 of 11)
Revision Date Author Comments
# 6fd0861f 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to inc/Form


# 5a10fbce 27-Jul-2022 Andreas Gohr <andi@splitbrain.org>

Support the multiple attribute in Form selects

This should fix a problem mentioned in
https://github.com/splitbrain/dokuwiki-plugin-data/pull/229#issuecomment-1196367602

Note that prefilling from $

Support the multiple attribute in Form selects

This should fix a problem mentioned in
https://github.com/splitbrain/dokuwiki-plugin-data/pull/229#issuecomment-1196367602

Note that prefilling from $INPUT is still only supported for single
value selects.

show more ...


# 9d01c1d9 01-Jul-2020 Satoshi Sahara <sahara.satoshi@gmail.com>

PSR-12 coding style


# 64159a61 27-Apr-2018 Andreas Gohr <andi@splitbrain.org>

line lengths shortened

This makes sure all files use line lenghts shorter than 120 characters.

This is a quick fix. It might not always be the nicest change.


# 389e1856 26-Oct-2017 Michael Große <grosse@cosmocode.de>

fix: prevent two selected options, b/c apparently 'String' == 0 ��

There was a bug, where the options array ['Auto', 0, 1] would result in
HTML option tags where both the 'Auto' and the 0 option we

fix: prevent two selected options, b/c apparently 'String' == 0 ��

There was a bug, where the options array ['Auto', 0, 1] would result in
HTML option tags where both the 'Auto' and the 0 option were selected.

show more ...


# 12a9bc03 22-Feb-2017 LarsDW223 <lars_paulsen@web.de>

Throw an exception if an attribute array including the attribute 'selected' is given
to 'OptGroup::options()' as this would lead to an <option> tag having two 'selected' attributes.


# 1b26d16d 17-Jan-2017 Michael Grosse <grosse@cosmocode.de>

Allow select-options as arrays with numeric keys

The problem this is solving is that PHP does not allow for array-keys to
be strings of ints. It always converts them to actual ints. This caused
a pr

Allow select-options as arrays with numeric keys

The problem this is solving is that PHP does not allow for array-keys to
be strings of ints. It always converts them to actual ints. This caused
a problem when trying to use complex array-options with integers as
keys.

show more ...


# 017eef93 22-Dec-2016 Michael Grosse <grosse@cosmocode.de>

refactor: rename parameters to be less ambiguous


# d1bbf588 22-Dec-2016 Michael Grosse <grosse@cosmocode.de>

refactor: use existing and simpler method


# 9c3fca6d 22-Dec-2016 Michael Grosse <grosse@cosmocode.de>

refactor: Rename method to better convey its purpose


# 238a072b 12-Dec-2016 Michael Grosse <grosse@cosmocode.de>

Add support for optgroup-tags for select-fields

In more complex selects we may want to group options by some criteria.
HTML has the <optgroup>-tag for that purpose.

However in Order to not duplicat

Add support for optgroup-tags for select-fields

In more complex selects we may want to group options by some criteria.
HTML has the <optgroup>-tag for that purpose.

However in Order to not duplicate code, I've to move the handling of
options to the OptGroup-Class completely.

Known Issues:
-------------
* We may have more than one option with the same value and therefore
more than one option may be marked as selected.

show more ...