setOption() публичный Метод

Options recognized by DefaultFormRenderer - 'label' - textual or IHtmlString object label - 'visual' - indicates visual group - 'container' - container as Html object - 'description' - textual or IHtmlString object description - 'embedNext' - describes how render next group
public setOption ( $key, $value ) : self
Результат self
Пример #1
0
 /**
  * Adds fieldset group to the form.
  * @param  string  caption
  * @param  bool    set this group as current
  * @return ControlGroup
  */
 public function addGroup($caption = NULL, $setAsCurrent = TRUE)
 {
     $group = new ControlGroup();
     $group->setOption('label', $caption);
     $group->setOption('visual', TRUE);
     if ($setAsCurrent) {
         $this->setCurrentGroup($group);
     }
     if (isset($this->groups[$caption])) {
         return $this->groups[] = $group;
     } else {
         return $this->groups[$caption] = $group;
     }
 }