Overview

Packages

  • bootstrap
    • behaviors
    • components
    • form
    • gii
    • helpers
    • widgets

Classes

  • TbForm
  • TbFormButtonElement
  • TbFormInputElement
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * TbFormInputElement class file.
 4:  * @author Christoffer Niska <christoffer.niska@gmail.com>
 5:  * @copyright Copyright &copy; Christoffer Niska 2013-
 6:  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
 7:  * @package bootstrap.form
 8:  */
 9: 
10: /**
11:  * Bootstrap form input element.
12:  */
13: class TbFormInputElement extends CFormInputElement
14: {
15:     /**
16:      * Renders everything for this input.
17:      * @return string the complete rendering result for this input, including label, input field, hint, and error.
18:      */
19:     public function render()
20:     {
21:         /** @var TbForm $parent */
22:         $parent = $this->getParent();
23:         /** @var TbActiveForm $form */
24:         $form = $parent->getActiveFormWidget();
25:         return $form->createControlGroup($this->type, $parent->getModel(), $this->name, $this->attributes, $this->items);
26:     }
27: }
Yiistrap API documentation generated by ApiGen 2.8.0