Skip to content
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

Added support for image download; Removed the file name trimming #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

license2e
Copy link

Added support for image download to complete the full export functionality
Also, removed the file name trimming since it also removed the file extension

Signed-off-by: license2e ilya@shindyapin.com

…g since it also removed the extension

Signed-off-by: license2e <ilya@shindyapin.com>
if ($item instanceof PodioItem) {
foreach ($item->fields as $field) {
if ($field instanceof PodioItemField) {
if($field instanceof PodioImageItemField) {
$itemImages = $field->values;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here should be something like array_merge to account for multiple image fields in one item.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are probably correct, I will have to spin up an organization to test that out, since I only have one image field.

@daniel-sc
Copy link
Owner

Hi @license2e ,

thank you very much for contributing!!

I have just some two remarks before merge:

  • The collecction of the images should be refactored from HumanFormat.phpto podio_backup_full_cli.php
  • I think you missed the possibility of multiple image fiels (see inline comment)

Feel free to explain why/that I'm wrong or refactor ;)

Regards, Daniel

@aseques
Copy link
Contributor

aseques commented Jan 20, 2016

It's a pitty this hasn't been merged, it's the missing feature, I'll see if I can do something

@daniel-sc
Copy link
Owner

Hi @aseques - you are very welcome to elaborate on the missing bits (see my comment) - then I'll happily merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants