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