« Back to slideshowpro.net
SlideShowPro Help Wiki
Recent changes / Search

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Director

SlideShowPro Director Hosting

Extras

Screencasts

SlideShowPro Director
Gallery methods
Page last modified by bdaily on July 25, 2008, at 01:24 PM

The Gallery methods allow you to get data and imagery 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)

Returns a single gallery along with its member albums and content.

<?php

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

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

?>


© 2008 Dominey Design Inc. All Rights Reserved.
About | Contact | Privacy policy | License agreements