Esempio n. 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
 }
Esempio n. 2
0
 public function getFormId()
 {
     return StringFormatter::pathToFormId($this->getPath());
 }