ManageAssets: add thumbnails to asset table

This commit is contained in:
2024-08-27 12:00:46 +02:00
parent 01954d4a7d
commit 814a1f82f6
3 changed files with 32 additions and 10 deletions

View File

@@ -12,12 +12,6 @@ class Image extends Asset
const TYPE_LANDSCAPE = 2;
const TYPE_PORTRAIT = 4;
protected function __construct(array $data)
{
foreach ($data as $attribute => $value)
$this->$attribute = $value;
}
public static function fromId($id_asset, $return_format = 'object')
{
$asset = parent::fromId($id_asset, 'array');