Exemplo n.º 1
0
 public function __construct()
 {
     I2CE_ModuleFactory::callHooks('formfactory_pre_construct');
     $this->classes = I2CE::getConfig()->modules->forms->forms;
     $this->classHierarchy = array();
     parent::__construct();
     I2CE_ModuleFactory::callHooks('formfactory_post_construct');
 }
 /**
  * Return the instance of this factory and create it if it doesn't exist.
  */
 public static function instance()
 {
     //for php 5.3 this can just be static::$instance, but for 5.2 we need to repeat this function in every sub-class b/c there is no LSB
     if (!self::$instance instanceof I2CE_FieldContainer_Factory) {
         self::$instance = new I2CE_FieldContainer_Factory();
     }
     return self::$instance;
 }