Ignore:
Timestamp:
Jan 13, 2013, 12:49:45 PM (11 years ago)
Author:
mistic100
Message:

compatible with Simple, new export options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/include/UserCollection.class.php

    r20093 r20099  
    504504  function serialize($params)
    505505  {
    506     $params = array_intersect($params, array('id','file','name','url','path'));
     506    $params = array_intersect($params, array('id','file','name','url','path','date_creation','collection_add_date','filesize','width','height'));
    507507   
    508508    $content = null;
     
    514514    file,
    515515    name,
    516     path
     516    path,
     517    date_creation,
     518    filesize,
     519    width,
     520    height,
     521    add_date AS collection_add_date
    517522  FROM '.IMAGES_TABLE.'
    518   WHERE id IN('.implode(',', $this->images).')
     523    JOIN '.COLLECTION_IMAGES_TABLE.' ON id = image_id
     524  WHERE col_id = '.$this->data['id'].'
    519525  ORDER BY id
    520526;';
     
    537543          switch ($field)
    538544          {
    539           case 'id':
    540             $element[] = $row['id']; break;
    541           case 'file':
    542             $element[] = $row['file']; break;
    543545          case 'name':
    544546            $element[] = render_element_name($row); break;
     
    547549          case 'path':
    548550            $element[] = $root_url.ltrim($row['path'], './'); break;
     551          default:
     552            $element[] = $row[$field]; break;
    549553          }
    550554        }
Note: See TracChangeset for help on using the changeset viewer.