C_Widget

Class C_Widget.

Defined (1)

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

/products/photocrati_nextgen/modules/widget/package.module.widget.php  
  1. class C_Widget extends C_MVC_Controller 
  2. public static $_instances = array(); 
  3. function define($context = FALSE) 
  4. parent::define($context); 
  5. $this->add_mixin('Mixin_Widget'); 
  6. $this->implement('I_Widget'); 
  7. public static function get_instance($context = FALSE) 
  8. if (!isset(self::$_instances[$context])) { 
  9. self::$_instances[$context] = new C_Widget($context); 
  10. return self::$_instances[$context];