Source of file BootstrapTextField.php
Size: 1,164 Bytes - Last Modified: 2021-12-24T06:39:20+00:00
/var/www/docs.ssmods.com/process/src/code/BootstrapTextField.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | <?php /** * Description of BootstrapTextField * * @author Patrick Chitovoro * @copyright (c) 2014, Chito Systems */ class BootstrapTextField extends TextField { protected $columnWidth; /** * Returns an input field, class="text" and type="text" with an optional maxlength * * @param $name * @param null $title * @param string $value * @param null $maxLength * @param null $form * @param null $columnWidth */ public function __construct($name, $title = null, $value = '', $columnWidth=null ,$maxLength = null, $form = null) { $this->maxLength = $maxLength; $this->columnWidth = $columnWidth; parent::__construct($name, $title, $value, $form); } public function Field($properties = array()) { return parent::Field($properties); } protected $extraClasses = array('form-control', 'field', 'text'); public function extraClasses() { $classes = array('field', 'form-control', parent::extraClasses()); return implode(' ', $classes); } public function columnWidth() { return $this->columnWidth; } } |