/** * * @param string $title * @param boolean $inline * @param array $attributes * @return \Bootstrap_Abstract */ public function label($title, $inline = FALSE, array $attributes = array()) { $label = Bootstrap_Form_Element_Label::factory(array('for' => $this->attributes('id'), 'title' => $title), $attributes)->attributes('class', 'checkbox')->set_parent($this); if ($inline !== FALSE) { $label->attributes('class', 'inline'); } return $this->set('label', $label); }
/** * * @param string $title * @param array $attributes * @return Bootstrap_Form_Element_Input */ public function label($title, array $attributes = array()) { $label = Bootstrap_Form_Element_Label::factory(array('for' => $this->attributes('id'), 'title' => $title), $attributes)->set_parent($this); return $this->set('label', $label); }