/** * Handles display mode by setting the matching css class. * * @see http://getbootstrap.com/css/#forms */ private function handleDisplayMode() { switch ($this->display_mode) { case 'h': $this->html->addCss('form-horizontal'); break; case 'i': $this->html->addCss('form-inline'); break; } }