History log of /plugin/struct/helper.php (Results 1 – 25 of 29)
Revision Date Author Comments
# 4f8ee70d 12-Dec-2023 Anna Dabrowska <dabrowska@cosmocode.de>

Handle empty JSON


# 5e29103a 11-Dec-2023 annda <annda@users.noreply.github.com>

�� Automatic code style fixes


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

�� Automatic code style fixes


# 6c9d1a10 21-Sep-2022 Anna Dabrowska <dabrowska@cosmocode.de>

Rename internal schemas to "internal"


# 17a3a578 13-Jan-2022 Andreas Gohr <andi@splitbrain.org>

Manual code style adjustments


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

PHP code sniffer autofixes


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

Eliminate warnings in PHP 8


# 308cc83f 14-May-2020 Andreas Gohr <andi@splitbrain.org>

refactoring names

To avoid confusion with the Lookup type, the three different ways of
accessing a schema have now the following names:

* page data - for revisioned struct data attached to a page
*

refactoring names

To avoid confusion with the Lookup type, the three different ways of
accessing a schema have now the following names:

* page data - for revisioned struct data attached to a page
* serial data - for an unrevisioned list of struct data attached to a
page
* global data - for an unrevisioned list of struct data not attached to
any page (formaly known as lookup schema)

The editor mechanism used for serial and global data is now called
AggregationEditor

Some reference to lookup schemas is still in the bureaucracy support
part.

show more ...


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

Introduce new factory methods for data access and deprecate old ones


# 565b4cc1 16-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Add wrapper function for json_decode()


# 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


# 03307831 02-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Remove redundant serial code

There is actually very little need to split the handling of lookup (not page specific) and serial (page bound) data, because row ids are globally unique and never shared

Remove redundant serial code

There is actually very little need to split the handling of lookup (not page specific) and serial (page bound) data, because row ids are globally unique and never shared between those two types.

show more ...


# 10575566 23-Mar-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Some fixme cleanups


# b9d35ff2 18-Mar-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Rudimentary handling of serial data

Serial data is bound to a page but does not affect versioning


# 0ceefd5c 11-Mar-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Start unifying schema types

Schemas per se are type agnostic, isLookup property is removed. Data is stored and accessed differently based on how it is entered and retrieved.

The crucial change is i

Start unifying schema types

Schemas per se are type agnostic, isLookup property is removed. Data is stored and accessed differently based on how it is entered and retrieved.

The crucial change is introduction of the composite key of pid and rid. Previous page data utilizes rid = 0 to differentiate itself. Other types, notably lookup, have autoincrementing rid.

Database migration is not implemented yet.

show more ...


# eddb76ff 01-Apr-2019 Andreas Gohr <andi@splitbrain.org>

Merge pull request #433 from glensc/api-minor-edit

remote: allow making minor edits


# f0ee60b9 16-Mar-2019 Michael Große <mic.grosse@googlemail.com>

�� Fix saved lookup row not being displayed

This fixes a bug that was introduced in ff2afc7c7bdf9f04b6bc2917af42ff865757c54d

When saving the lookup we need the id of the row we just saved to create

�� Fix saved lookup row not being displayed

This fixes a bug that was introduced in ff2afc7c7bdf9f04b6bc2917af42ff865757c54d

When saving the lookup we need the id of the row we just saved to create
the response to the original ajax request.

Closes #398

show more ...


# 178d3992 02-Jan-2019 Elan Ruusamäe <glen@delfi.ee>

remote: allow making minor edits


# ff2afc7c 22-May-2018 Michael Große <grosse@cosmocode.de>

refactor: Move saving of lookup row to helper method

This should make saving lookup data easier, both for tests and external plugins


# 025cb9da 02-Nov-2016 Andreas Gohr <gohr@cosmocode.de>

made Assignments singleton. fixes #163


# 93ca6f4f 23-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

more Validator refactoring


# 13eddb0f 09-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

inline editing for lookups works now

Additionally only the edited field not the wohle row is validated now.


# 94c9aa4c 08-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

renamed SchemaData and SchemaLookupData

This is to reflect that they no longer inherit from Schema


# f411d872 08-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

refactor SchemaData into AccessTable with factory

first part of the refactoring for the SchemaData and SchemaLookupData
classes. Both now inherit from AccessTable which provides common methods
and t

refactor SchemaData into AccessTable with factory

first part of the refactoring for the SchemaData and SchemaLookupData
classes. Both now inherit from AccessTable which provides common methods
and two factory methods to automatically create the correct class
depending on the schema.

Both classes no longer inherit from Schema. Instead they contain a
Schema as a member variable. This makes it possible to initialize them
with an existing schema (which is required for the factory methods).

The flow is now like this:

1: init a schema (read info from the database)
2: look at the schema to figure out if it's a lookup or not
3: initialize the right Data object with the schema

show more ...


12