History log of /plugin/struct/meta/SearchConfig.php (Results 1 – 25 of 50)
Revision Date Author Comments
# ba662a60 07-Apr-2025 Andreas Gohr <andi@splitbrain.org>

some automatic rector fixes


# 8b7e143c 07-Apr-2025 Andreas Gohr <andi@splitbrain.org>

$NSORID$ filter place holder. implements #712

This filter will return the current page unless when called on a
namespace start page where it will return the namespace instead.


# 7fe2cdf2 13-Sep-2023 Andreas Gohr <andi@splitbrain.org>

apply #670 and manually cleanup afterwards

fixes some failing tests
uses sexplode over array_pad
reformats multiline arrays


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

�� Automatic code style fixes


# c1bfd816 27-Jul-2023 Anna Dabrowska <dabrowska@cosmocode.de>

Merge remote-tracking branch 'saggi-dw/date-filter'


# 888559e1 27-Jul-2023 saggi-dw <saggi@gmx.de>

Move 'if' to 'elseif'
move assignment of '$timestamp' outside of condition
format adjusted to the styleguide


# cfab6317 18-Jul-2023 Andreas Gohr <andi@splitbrain.org>

fixed style errors


# fdf37115 18-Jul-2023 Andreas Gohr <andi@splitbrain.org>

refactoring dynamic parameter handling, part 4

This finally adjusts the tests. It also adds getLimit and getOffset in
the search class.


# fd9c77d3 17-Jul-2023 Andreas Gohr <andi@splitbrain.org>

refactoring dynamic parameter handling, part 3

This moves SQL building into it's own class, splitting it into separate
methods. This allows for reusing the filter handling a second time to
separate

refactoring dynamic parameter handling, part 3

This moves SQL building into it's own class, splitting it into separate
methods. This allows for reusing the filter handling a second time to
separate out the dynamic filters.

Still no work on tests

show more ...


# b3a9db22 17-Jul-2023 Andreas Gohr <andi@splitbrain.org>

refactoring dynamic parameter handling, part 1

Instead of modifying the configuration array, we now call the
appropriate methods on the SearchConfig object in the apply() method
which replaces the u

refactoring dynamic parameter handling, part 1

Instead of modifying the configuration array, we now call the
appropriate methods on the SearchConfig object in the apply() method
which replaces the updateConfig() method.

A constructor parameter on SearchConfig allows to ignore the
dynamicParameters alltogether.

Tests are broken

show more ...


# 7f610bd5 15-Dec-2022 saggi-dw <saggi@gmx.de>

Add variable date filter based on strtotime


# 1ca21e17 31-Mar-2022 Anna Dabrowska <dabrowska@cosmocode.de>

Multiple fixes for PHP 8 (#600)


# ecf2cba2 27-Jan-2022 Andreas Gohr <andi@splitbrain.org>

Use $INPUT to access server variables


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

PHP code sniffer autofixes


# 0280da9a 11-Apr-2021 Frieder Schrempf <dev@fris.de>

Fix bug in struct filter variable evaluation

When a search contains a struct variable expression for filtering and
the variable references a schema that is not assigned to the current
search but has

Fix bug in struct filter variable evaluation

When a search contains a struct variable expression for filtering and
the variable references a schema that is not assigned to the current
search but has a column with the same name like one from the assigned
schemas, the evaluation of the variable doesn't return the correct
value.

This patch fixes the bug by ensuring that findColumn() returns false
in case the requested schema wasn't found within the assigned schemas.

To make sure the behavior of other callers of findColumn() remains the
same, we introduce a parameter 'strict' to trigger this new behavior
in applyFilterVarsStruct().

There is also a unit test added in a separate commit that explicitely
checks this case.

Signed-off-by: Frieder Schrempf <dev@fris.de>

show more ...


# 208bb3f3 08-Mar-2021 Anna Dabrowska <dabrowska@cosmocode.de>

Fix code style violations


# 34ea6e10 16-Feb-2021 Anna Dabrowska <dabrowska@cosmocode.de>

Eliminate warnings in PHP 8


# 4cd5cc28 07-May-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Introduce new factory methods for data access and deprecate old ones


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

Automatic coding style fixes


# 387ee210 06-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Pass current time instead of 0 to fetch data of latest page revision


# e983bcda 21-Sep-2018 Szymon Olewniczak <solewniczak@rid.pl>

method splitted, test provided


# daa4b09d 08-Sep-2018 Szymon Olewniczak <solewniczak@rid.pl>

Adds userinfo to value placeholders

The commit introduces 3 additional placeholders to be used in filters:
* $USER.name$
* $USER.mail$
* $USER.grps$

This may be particularly useful with struc

Adds userinfo to value placeholders

The commit introduces 3 additional placeholders to be used in filters:
* $USER.name$
* $USER.mail$
* $USER.grps$

This may be particularly useful with structgroup plugin.

show more ...


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

Fix typo

At least it was consistent...


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

Throw on missing column

This happens if the user explicitly enters a column that does not exist in the
schema. This error was previously silently ignored.

This adjustment notifies the user that the

Throw on missing column

This happens if the user explicitly enters a column that does not exist in the
schema. This error was previously silently ignored.

This adjustment notifies the user that there is an error.

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 ...


12