C_Form

Class C_Form.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_admin/package.module.nextgen_admin.php  
  1. class C_Form extends C_MVC_Controller 
  2. static $_instances = array(); 
  3. var $page = NULL; 
  4. /** 
  5. * Gets an instance of a form 
  6. * @param string $context 
  7. * @return C_Form 
  8. */ 
  9. static function &get_instance($context) 
  10. if (!isset(self::$_instances[$context])) { 
  11. $klass = get_class(); 
  12. self::$_instances[$context] = new $klass($context); 
  13. return self::$_instances[$context]; 
  14. /** 
  15. * Defines the form 
  16. * @param string $context 
  17. */ 
  18. function define($context = FALSE) 
  19. parent::define($context); 
  20. $this->add_mixin('Mixin_Form_Instance_Methods'); 
  21. $this->add_mixin('Mixin_Form_Field_Generators'); 
  22. $this->implement('I_Form');