C_Frame_Event_Publisher

Class C_Frame_Event_Publisher.

Defined (1)

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

/products/photocrati_nextgen/modules/frame_communication/package.module.frame_communication.php  
  1. class C_Frame_Event_Publisher extends C_Component 
  2. static $_instances = array(); 
  3. var $setting_name = NULL; 
  4. function define($context = FALSE) 
  5. parent::define($context); 
  6. $this->add_mixin('Mixin_Frame_Event_Publisher'); 
  7. $this->implement('I_Frame_Event_Publisher'); 
  8. function initialize() 
  9. parent::initialize(); 
  10. $this->setting_name = C_NextGen_Settings::get_instance()->frame_event_cookie_name; 
  11. /** 
  12. * Gets an instance of the publisher 
  13. * @param string $context 
  14. * @return C_Frame_Event_Publisher 
  15. */ 
  16. static function get_instance($context = FALSE) 
  17. if (!isset(self::$_instances[$context])) { 
  18. $klass = get_class(); 
  19. self::$_instances[$context] = new $klass($context); 
  20. return self::$_instances[$context];