-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZEE-3350: Added support to save additional data in ezImage FT #137
Conversation
56aee4a
to
8c80c0c
Compare
eZ/Publish/Core/Persistence/Tests/Legacy/FieldValue/Converter/ImageConverterTest.php
Outdated
Show resolved
Hide resolved
…ImageConverterTest.php Co-authored-by: Adam Wójs <[email protected]>
eZ/Publish/Core/Persistence/Tests/Legacy/FieldValue/Converter/ImageConverterTest.php
Outdated
Show resolved
Hide resolved
<<< XML | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ezimage serial_number="1" is_valid="1" filename="ibexa_fav.png" | ||
suffix="png" basename="ibexa_fav" dirpath="{$dir}" url="{$pathToImg}" | ||
original_filename="ibexa_fav.png" mime_type="image/png" width="100" | ||
height="200" alternative_text="test" alias_key="1293033771" timestamp="{timestampToReplace}"> | ||
<original attribute_id="1" attribute_version="1" attribute_language="eng-GB"/> | ||
<information Height="200" Width="100" IsColor="1"/> | ||
<additional_data><attribute key="focalPointX">50</attribute><attribute key="focalPointY">100</attribute><attribute key="author">John Smith</attribute></additional_data> | ||
</ezimage> | ||
XML, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes
You can indent this, since we have PHP 7.3+ as dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also thought we can do this, but it seems that indenting XMLs causes issues with linters as XML must start with declaration and not empty spaces.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA approved on Ibexa DXP 3.3.0-dev with diff.
v3.3
As a part of image editor story, ezimage type must be able to save additional information with some related parameters. This opened up possibility to make it more versatile (and easier to maintain).
Checklist:
$ composer fix-cs
).@ezsystems/php-dev-team
).