History log of /plugin/struct/meta/Value.php (Results 1 – 22 of 22)
Revision Date Author Comments
# bfb78ce3 15-Nov-2023 Anna Dabrowska <dabrowska@cosmocode.de>

Cloud: display count when summarize is configured

Implements #613


# 7234bfb1 13-Sep-2023 splitbrain <splitbrain@users.noreply.github.com>

�� Automatic code style fixes


# 1ee0a2dc 26-Jun-2023 Andreas Gohr <andi@splitbrain.org>

only have unique result rows when nesting

This fixes row duplication on nesting with multiple multival fields


# 5bc00e11 22-Jun-2023 Andreas Gohr <andi@splitbrain.org>

Add nesting option for List Aggregations

This allows to create nested lists based on the selected number of
result columns. This is basically a group-by after the fact and
displaying it in a tree. M

Add nesting option for List Aggregations

This allows to create nested lists based on the selected number of
result columns. This is basically a group-by after the fact and
displaying it in a tree. Multivalues are split up for grouping, so that
a result can be nested by tags for example.

show more ...


# 6a819106 05-Apr-2023 Andreas Gohr <andi@splitbrain.org>

more test and deprecation fixes


# 0549dcc5 13-Jan-2022 Andreas Gohr <andi@splitbrain.org>

PHP code sniffer autofixes


# d6d97f60 09-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Automatic coding style fixes


# ee983135 02-Jun-2017 Michael Große <grosse@cosmocode.de>

Fix multiple inputs in one label: it's invalid ��

Multiple inputs within a single label in invalid HTML. This bug can not
only occur in multi-fields but also in plugin-provided single fields
which m

Fix multiple inputs in one label: it's invalid ��

Multiple inputs within a single label in invalid HTML. This bug can not
only occur in multi-fields but also in plugin-provided single fields
which may contain multiple input-fields which are then only combined by
javascript.

Thus, we provide an id which every type can assign to the edit-field
best suited. For multi-types this is usually the new-input-template.

Fixes #292

show more ...


# 7717c082 14-Mar-2017 Michael Große <grosse@cosmocode.de>

Add compareValue() abstract base type & lookup

This fixes a bug, that caused the $STRUCT.table.field$ filter syntax to
be broken for lookup fields. Struct was comparing the row-id of the
argument-c

Add compareValue() abstract base type & lookup

This fixes a bug, that caused the $STRUCT.table.field$ filter syntax to
be broken for lookup fields. Struct was comparing the row-id of the
argument-column to the raw value of the referenced column at the
filtered lookup.

There were multiple options to fix this bug:
1. Add a new function to the AbstractBaseType() that return raw value by
default (this is the approach implemented by this commit)
2. Add a function to the lookup type only and use introspection to call
it if it exists.
3. Do not compare the values in the referenced columns, but compare only
the row-ids

The problem with approach 3: It is not possible to compare such
lookup-column to any other column except lookups and this is not what we
want.
Approaches 1 and 2 have different trade-offs on where additional
code/complexity is created. I decided for approach 1 because it is the
cleaner overall approach and we might want to use this functionality for future
types as well.

SPR-875

show more ...


# 5d17398f 03-Jan-2017 Michael Grosse <grosse@cosmocode.de>

fix: fix broken cloud tags of multi-lookup columns

Since we group in the SQL query by tag, cloud tags are always single values.
However if the column we are creating the cloud from, is actually a
mu

fix: fix broken cloud tags of multi-lookup columns

Since we group in the SQL query by tag, cloud tags are always single values.
However if the column we are creating the cloud from, is actually a
multi-column then that single value is still in an array. But since that
array can never contain more than 1 value we can simply take the first
one.

The alternative of changing the type was considered but found not to be
practical, because changing the type of a value/column is not intended.
Recreating a new column and type for that value has been found to be
impractical as well.

show more ...


# 9e7e1786 06-Dec-2016 Michael Grosse <grosse@cosmocode.de>

doc: update php docstrings


# 262c0fc6 05-Dec-2016 Michael Grosse <grosse@cosmocode.de>

feat: make images in clouds square

Also move the code to generate tag cloud links to the AbstractBaseType
and overwrite it in Media and Color


# bf83580b 22-Nov-2016 Michael Grosse <grosse@cosmocode.de>

fix: keep leading whitespace in value of wiki-type

Fixes #223 and fixes SPR-712


# c0230d2c 24-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

Always use raw values for editors

This is another attempt to fix #140. The valueEditor() and
multiValueEditor() now always expect raw values to be passed. The Value
class was adjusted accordingly. I

Always use raw values for editors

This is another attempt to fix #140. The valueEditor() and
multiValueEditor() now always expect raw values to be passed. The Value
class was adjusted accordingly. It now allows to set the raw value
(which is what we get from POST). If done, the Value object is treated
as a rawonly Value that will throw an exception when you try to access
value or displayvalue.

show more ...


# 5241ca30 15-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

introduces getDisplayValue

A way to represent a complex type as a single non-complex type. Usually
this is the same as the rawValue.


# 90421550 11-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

begin stremalining raw handling #148

This starts implementing the wanted features in the Value and
AccessTable class. Calling classes and tests aren't adjusted, yet


# ba766201 28-Apr-2016 Andreas Gohr <gohr@cosmocode.de>

Use DokuWiki new autoloader for class files

No longer do we need to register our own autoloader. Namespace had to be
vendor prefixed.


# 7937b821 02-Mar-2016 Andreas Gohr <gohr@cosmocode.de>

make Value more robust and test it #35


# 19065d4e 01-Mar-2016 Andreas Gohr <gohr@cosmocode.de>

do not render empty values. closes #44


# 17560ecb 17-Feb-2016 Andreas Gohr <gohr@cosmocode.de>

added validation support #11


# 053212b1 16-Feb-2016 Andreas Gohr <gohr@cosmocode.de>

make use of the new Value objects in the entry form


# 38fa36fb 16-Feb-2016 Andreas Gohr <gohr@cosmocode.de>

introduced Value class

This class holds the value of a single cell and a reference to the
column.