You are here

public function FormBuilderFormBase::getProperties in Form Builder 7

File

./form_builder.classes.inc, line 716

Class

FormBuilderFormBase

Code

public function getProperties($reset = FALSE) {
  if (!$this->properties || $reset) {
    $properties = FormBuilderLoader::instance()
      ->getPropertyInfo($this->formType, $reset);
    foreach ($properties as $property => $params) {
      $class = $params['class'];
      $this->properties[$property] = new $class($property, $params, $this->formType);
    }
  }
  return $this->properties;
}