Visit SlideShowPro.net  Community Forums
SlideShowPro Support Wiki
  
SlideShowPro Director

Gallery methods

The Gallery methods allow you to get data and images based on the Gallery it belongs to.

all()

Return a list of all galleries along with their member albums. The content of the member albums is not returned. If you need to content, you should perform album->get while looping through the galleries albums.

<?php

   include('classes/DirectorPHP.php');
   $director = new Director('your-api-key', 'your-api-path');

   $galleries = $director->gallery->all();

   foreach($galleries as $gallery) {
      echo $gallery->name . '<br />';
   }

?>

get(gallery_id, options)

Returns a single gallery along with its member albums and content. The options parameter is optional and can include the following parameters:

limit The number of member albums to return. Defaults to all member albums.

order Using this parameter, you can override the album order setting for the gallery. Options are "display" (current order set in Director), "created_on" and "modified_on".

with_content Whether or not to return the member albums' content. Defaults to true.

<?php

   include('classes/DirectorPHP.php');
   $director = new Director('your-api-key', 'your-api-path');

   $gallery = $director->gallery->get(1);
   echo $gallery->name;

?>


Page last modified by bdaily on October 20, 2009, at 05:58 PM
© 2011 SlideShowPro. All Rights Reserved.