Example #1
0
 public function __construct($name, $options = NULL)
 {
     $this->name = $name;
     $this->id = 'form-field-' . StringFormatter::pathToFormId($name);
     $this->label = StringFormatter::camelCaseToSentence($name);
     // todo: use/set options
 }
Example #2
0
 /**
  * @return string
  */
 public function getFormName()
 {
     return StringFormatter::pathToFormName($this->getPath());
 }