You are here

public function FormBuilderFormBase::__construct in Form Builder 7

File

./form_builder.classes.inc, line 377

Class

FormBuilderFormBase

Code

public function __construct($form_type, $form_id, $sid, $params, $form) {
  $this->formType = $form_type;
  $this->formId = $form_id;
  $this->sid = $sid ? $sid : session_id();
  $this->params = $params;
  $this->properties = NULL;
  $this->form =& $form;
  $this->elementArrays[FORM_BUILDER_ROOT] =& $this->form;
  $this
    ->addDefaults($this->form);
  $this
    ->indexElements($this->form);
}