History log of /plugin/struct/meta/AccessTable.php (Results 26 – 44 of 44)
Revision Date Author Comments
# 6fd73b4b 25-Mar-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Inline editors are mostly adapted to new data access


# 86a40c1e 25-Mar-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Save empty page ids as strings, not NULL

pid is part of primary key and so must not be NULL. Otherwise the unique constraint does not work, SQLite effectively treats every NULL as unique.


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


# 6e54daaf 13-Mar-2017 Michael Große <grosse@cosmocode.de>

Use labels as keys for getData array of Values

This makes accessing the value of a specific column easier, since
otherwise we would have to loop through the array and call getLabel for
every column.

Use labels as keys for getData array of Values

This makes accessing the value of a specific column easier, since
otherwise we would have to loop through the array and call getLabel for
every column.

Tests have been adjusted.

show more ...


# a0a1d14e 07-Dec-2016 Andreas Gohr <gohr@cosmocode.de>

show display value in diffs. fixes #236


# 9c00b26c 14-Nov-2016 Andreas Gohr <gohr@cosmocode.de>

close result set


# 7cbcfbdb 07-Nov-2016 Andreas Gohr <gohr@cosmocode.de>

better handling of failing sqlite plugin init. fixes #200


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

show new row when adding to lookup

This renders the newly created row and adds it dynamically to the
existing table.


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

Merge branch 'lookups' into validationrefactor

* lookups:
test translation feature
implement rendering via sub type in Dropdown
fix displayValue for looked up type, more tests
fixed construc

Merge branch 'lookups' into validationrefactor

* lookups:
test translation feature
implement rendering via sub type in Dropdown
fix displayValue for looked up type, more tests
fixed constructor signature
first test for new Dropdown features
adjusted tests for renamed aliases
Add Lookup Support to Dropdown
column aliases need to differ from real column names
use display value as default renderer
introduces getDisplayValue

show more ...


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

more Validator refactoring


# 87dc1344 23-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

first start at refactoring the validation mechanism

A Validator is now returned by the AccessTable. It has it's own save
method. The entry.php was split up in entry, edit and revert to separate
the

first start at refactoring the validation mechanism

A Validator is now returned by the AccessTable. It has it's own save
method. The entry.php was split up in entry, edit and revert to separate
the different concerns. Validation is only done in entry and the thanks
to the new Validator mechanism, the once loaded access table is reused
in saving.

This will break all kind of stuff. Fixing that is for the upcoming
commits

show more ...


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

column aliases need to differ from real column names

Otherwise the grouping is ambigious. In Search() this was the case
already.


# 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


# e12908f1 10-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

removed unecessary function calls


# 897aef42 09-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

some cleanup regarding timestamp setting in AccessTable*


# 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