mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Remove some deprecated calls
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
/*
|
|
||||||
* This file is part of Phraseanet
|
* This file is part of Phraseanet
|
||||||
*
|
*
|
||||||
* (c) 2005-2014 Alchemy
|
* (c) 2005-2016 Alchemy
|
||||||
*
|
*
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
@@ -57,18 +56,18 @@ class ESRecordSerializer extends AbstractSerializer
|
|||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'databox_id' => $record->get_sbas_id(),
|
'databox_id' => $record->getDataboxId(),
|
||||||
'record_id' => $record->get_record_id(),
|
'record_id' => $record->getRecordId(),
|
||||||
'collection_id' => $record->get_collection()->get_coll_id(),
|
'collection_id' => $record->getCollectionId(),
|
||||||
'base_id' => $record->get_base_id(),
|
'base_id' => $record->getBaseId(),
|
||||||
'mime_type' => $record->get_mime(),
|
'mime_type' => $record->getMimeType(),
|
||||||
'title' => $record->get_title(),
|
'title' => $record->get_title(),
|
||||||
'original_name' => $record->get_original_name(),
|
'original_name' => $record->get_original_name(),
|
||||||
'updated_on' => $record->get_modification_date()->format(DATE_ATOM),
|
'updated_on' => $record->getUpdated()->format(DATE_ATOM),
|
||||||
'created_on' => $record->get_creation_date()->format(DATE_ATOM),
|
'created_on' => $record->getCreated()->format(DATE_ATOM),
|
||||||
'sha256' => $record->get_sha256(),
|
'sha256' => $record->getSha256(),
|
||||||
'technical_informations' => $technicalInformation,
|
'technical_informations' => $technicalInformation,
|
||||||
'phrasea_type' => $record->get_type(),
|
'phrasea_type' => $record->getType(),
|
||||||
'type' => $record->isStory() ? 'story' : 'record',
|
'type' => $record->isStory() ? 'story' : 'record',
|
||||||
'uuid' => $record->getUuid(),
|
'uuid' => $record->getUuid(),
|
||||||
'caption' => $caption,
|
'caption' => $caption,
|
||||||
|
Reference in New Issue
Block a user