History log of /plugin/structpublish/helper/db.php (Results 1 – 15 of 15)
Revision Date Author Comments
# 9ab8cbae 15-Aug-2025 annda <17853330+annda@users.noreply.github.com>

�� Automatic code style fixes


# 31e730e1 29-Aug-2023 Anna Dabrowska <dabrowska@cosmocode.de>

Code style adjustments


# 2467315a 29-Aug-2023 Anna Dabrowska <dabrowska@cosmocode.de>

Fix publishable check

Bug in aggregations: the check was always applied to current page.
Instead it should check the pid of the current result row.


# 5b1fd00b 19-Jul-2023 Andreas Gohr <andi@splitbrain.org>

use composing instead of inheritance to access DB

this should avoid two connections to the database


# f734c62f 22-Jun-2023 Anna Dabrowska <dabrowska@cosmocode.de>

Update queries for new SQLiteDB class


# ed00f27d 22-May-2023 Andreas Gohr <andi@splitbrain.org>

register IS_PUBLISHED on our own database connection

Ideally the plugin shouldn't open it's own connection, but rely on the
main struct connection. But since our helper inherits from the struct
help

register IS_PUBLISHED on our own database connection

Ideally the plugin shouldn't open it's own connection, but rely on the
main struct connection. But since our helper inherits from the struct
helper it is treated as a different class (not as the same as struct).
So we need to ensure that our function is registered on the correct
connection.

Why this has worked before is unclear. With the devel branch of the
sqlite plugin it fails.

In the future this should be refactored correctly.

show more ...


# 8b0ba635 15-Sep-2022 Andreas Gohr <andi@splitbrain.org>

added more docblocks and some reformatting


# 126b0b8e 14-Sep-2022 Anna Dabrowska <dabrowska@cosmocode.de>

Update assignments when patterns are added


# e31c94d7 14-Sep-2022 Andreas Gohr <andi@splitbrain.org>

move all constants to their own class


# 2b546ecc 14-Sep-2022 Andreas Gohr <andi@splitbrain.org>

make it easier to check permissions for the current user


# dafa9812 24-Aug-2022 Anna Dabrowska <dabrowska@cosmocode.de>

Register custom sqlite function via event


# 939e6e3c 23-Aug-2022 Anna Dabrowska <dabrowska@cosmocode.de>

Remove obsolete helper


# 40f4519b 23-Aug-2022 Anna Dabrowska <dabrowska@cosmocode.de>

Working check whether current user may see not only published revisions


# 910e7e15 19-Aug-2022 Anna Dabrowska <dabrowska@cosmocode.de>

Admin interface and required code cleanup


# e394901a 06-Oct-2021 Anna Dabrowska <dabrowska@cosmocode.de>

Use a regular struct schema instead of custom table