diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-10-02 09:26:54 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-10-02 09:26:54 +0000 |
| commit | eb19fa6a076a8d211cd483afb01eeda6172d27e4 (patch) | |
| tree | 3eb6355b6918ceb0e2c9978cb5d98cb9f4458640 /lib/models/OpenGraphURL.class.php | |
| parent | fe64b827e2e503085c6f596eeed08d6ece36624b (diff) | |
fixes #3225
Closes #3225
Merge request studip/studip!2186
Diffstat (limited to 'lib/models/OpenGraphURL.class.php')
| -rw-r--r-- | lib/models/OpenGraphURL.class.php | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/lib/models/OpenGraphURL.class.php b/lib/models/OpenGraphURL.class.php index 62eecc4..29e5718 100644 --- a/lib/models/OpenGraphURL.class.php +++ b/lib/models/OpenGraphURL.class.php @@ -12,17 +12,20 @@ * A model class to handle the database table "opengraphdata", fetch data from * an Opengraph-URL and render a fitting box with the opengraph information to * the user. - * @property string url database column - * @property string id alias column for url - * @property string is_opengraph database column - * @property string title database column - * @property string image database column - * @property string description database column - * @property string type database column - * @property string data database column - * @property string last_update database column - * @property string chdate database column - * @property string mkdate database column + * + * @property int $id alias column for opengraph_id + * @property int $opengraph_id database column + * @property string $hash database column + * @property string $url database column + * @property int|null $is_opengraph database column + * @property string|null $title database column + * @property string|null $image database column + * @property string|null $description database column + * @property string|null $type database column + * @property JSONArrayObject $data database column + * @property int $last_update database column + * @property int $chdate database column + * @property int $mkdate database column */ class OpenGraphURL extends SimpleORMap { @@ -37,7 +40,7 @@ class OpenGraphURL extends SimpleORMap { $config['db_table'] = 'opengraphdata'; - $config['serialized_fields']['data'] = 'JSONArrayObject'; + $config['serialized_fields']['data'] = JSONArrayObject::class; parent::configure($config); } |
