Commit graph

11 commits

Author SHA1 Message Date
d725a63293
fix: Post property hook object return types 2026-02-22 10:51:14 +01:00
1b0a9f385f fix: use AUTO_INCREMENT of table as id of new posts (#9)
Reviewed-on: https://codeberg.org/vlw/wp/pulls/9
2026-02-16 13:37:52 +01:00
d52154192d refactor: move properties above methods and substr() varchar table columns (#8)
Reviewed-on: https://codeberg.org/vlw/wp/pulls/8
2026-02-16 13:37:33 +01:00
4ca9f8be5e feat: add method for querying the current AUTO_INCREMENT for a table (#5)
This will be used to retrieve the primary key for newly inserted rows.

Reviewed-on: https://codeberg.org/vlw/wp/pulls/5
2026-02-16 11:27:30 +01:00
28f31250fa fix: proper table reference for PostMeta (#7)
Reviewed-on: https://codeberg.org/vlw/wp/pulls/7
2026-02-16 11:27:16 +01:00
a70015e314 feat: improved creation and assignment of post taxonomies and terms (#6)
With this PR we can (among actually creating taxonomies and terms) assign and remove terms from a post with the following
```php
$post = new Post(123);
$term = new Term(321);
```
Add a term to a post:
```php
$post->add_term($term);
```
Remove a term from a post:
```php
$post->remove_term($term);
```

Reviewed-on: https://codeberg.org/vlw/wp/pulls/6
2026-02-16 11:26:58 +01:00
b14c14d9b3 feat: add methods for Post featured media Attachments (#4)
In this PR we add methods for setting and getting featured media attachments for posts.

Reviewed-on: https://codeberg.org/vlw/wp/pulls/4
2026-02-15 11:52:29 +01:00
ff9b5ca42c
fix: pass static database credentials for Database::current() (#3) 2026-02-15 10:10:26 +01:00
eebe93fc53 feat: add parsing of WordPress taxonomies and terms (#2)
Reviewed-on: https://codeberg.org/vlw/wp/pulls/2
2026-02-15 09:51:02 +01:00
6d1fa852b5 fix: import Database from scaffolding lib and remove instances from .env.ini (#1)
This PR fixes instancing issues with `Database` due to not being able to locate its parent class from the scaffolding library. This is definitely kind of strange and should probably be investigated further. It might be because we're not autoloading these files from the library itself.

We also remove loading of Database credentials from `.env.ini` as that does not make any sense for a bundled library. Database credentials are now provided to the constructor of the `Database` class.

Reviewed-on: https://codeberg.org/vlw/wp/pulls/1
2026-02-12 15:27:00 +01:00
cfe10401a3
initial commit 2026-02-12 13:19:50 +01:00