public function __construct($name, $title = null, $value = "", $extraAttributes = null, $maxLength = null, $form = null) { if (is_array($extraAttributes)) { $this->extraAttributes = $extraAttributes; } parent::__construct($name, $title, $value, $maxLength, $form); }
/** * Constructor * * @param string $name * @param null|string $title * @param string $value * @param null|int $maxLength * @param null|Form $form */ public function __construct($name, $title = null, $value = '', $maxLength = null, $form = null) { parent::__construct($name, $title, $value, $maxLength, $form); $this->setTemplate('KnockoutTextField'); }