Exemple #1
0
 /**
  * Create a new instance of a I2CE_Form object.
  * @param I2CE_FieldContainer_Factory $factory
  * @param string $name The name of this form
  * @param integer $id
  */
 public function __construct($factory, $name, $id = '0')
 {
     $this->children = array();
     $this->setupParentField();
     $this->setupLastModifiedField();
     $this->setupCreatedField();
     I2CE_ModuleFactory::callHooks('form_pre_construct', array('form' => $this, 'name' => $name, 'id' => $id));
     parent::__construct($factory, $name, $id);
     if (I2CE_ModuleFactory::instance()->isEnabled("forms-storage")) {
         $this->setChangeType();
     }
     I2CE_ModuleFactory::callHooks('form_post_construct', array('form' => $this, 'name' => $name, 'id' => $id));
 }