« 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
Application methods
Page last modified by bdaily on October 08, 2008, at 08:26 AM

DirectorPHP's App subclass contains methods for obtaining information about the Director install.

version()

The version method returns the version of the API the Director install is running. Useful for determining if an install has the proper version of the API for the application you are building.

<?php

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

   $version = $director->app->version();
   echo $version;  // Example: 1.0.0 

?>

limits()

Returns the upload limits for the Director install.

<?php

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

   $limits = $director->app->limits();
   echo $limits->upload_limit; // Example output: 100M   

?>

totals()

Returns the total number of objects uploaded to Director and also the aggregate file size of those files.

<?php

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

   $totals = $director->app->totals();
   echo $totals->count; // Example output: 1000
   echo $totals->size; // Example output: 1240000

?>


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