Mixin_GalleryStorage

The NextGEN Gallery Mixin GalleryStorage class.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php  
  1. class Mixin_GalleryStorage extends Mixin 
  2. /** 
  3. * Returns the name of the class which provides the gallerystorage 
  4. * implementation 
  5. * @return string 
  6. */ 
  7. function _get_driver_factory_method($context = FALSE) 
  8. $factory_method = ''; 
  9. // No constant has been defined to establish a global gallerystorage driver 
  10. if (!defined('GALLERYSTORAGE_DRIVER')) { 
  11. // Get the datamapper configured in the database 
  12. $factory_method = C_NextGen_Settings::get_instance()->gallerystorage_driver; 
  13. // Define a constant and use this as the global gallerystorage driver,  
  14. // unless running in a SimpleTest Environment 
  15. if (!isset($GLOBALS['SIMPLE_TEST_RUNNING'])) { 
  16. define('GALLERYSTORAGE_DRIVER', $factory_method); 
  17. } else { 
  18. $factory_method = GALLERYSTORAGE_DRIVER; 
  19. return $factory_method;