function preParse($compiler) { if ($this->_isStandartMode()) { $this->widget_include_file = 'limb/macro/src/tags/form/lmbMacroCheckableInputWidget.class.php'; $this->widget_class_name = 'lmbMacroCheckableInputWidget'; } else { $this->widget_include_file = 'limb/macro/src/tags/form/lmbMacroJSCheckboxWidget.class.php'; $this->widget_class_name = 'lmbMacroJSCheckboxWidget'; } parent::preParse($compiler); $this->set('type', 'checkbox'); }
function preParse($compiler) { if ($this->getBool('multiple')) { $this->widget_include_file = 'limb/macro/src/tags/form/lmbMacroMultipleSelectWidget.class.php'; $this->widget_class_name = 'lmbMacroMultipleSelectWidget'; if (!$this->has('name')) { if ($this->has('id')) { $this->set('name', $this->get('id') . '[]'); } else { $this->raiseRequiredAttribute('name'); } } if (!is_integer(strpos($this->get('name'), '[]'))) { $this->raise('Array brackets "[]" required in name attribute, e.g. name="foo[]"', array('name' => $this->get('name'))); } } elseif (!isset($this->widget_include_file)) { $this->widget_include_file = 'limb/macro/src/tags/form/lmbMacroSingleSelectWidget.class.php'; $this->widget_class_name = 'lmbMacroSingleSelectWidget'; } // always has closing tag $this->has_closing_tag = true; parent::preParse($compiler); }
function preParse($compiler) { parent::preParse($compiler); $this->set('type', 'text'); }
function preParse($compiler) { parent::preParse($compiler); // always has closing tag $this->has_closing_tag = true; }
function preParse($compiler) { parent::preParse($compiler); $this->set('type', 'password'); }
function preParse($compiler) { parent::preParse($compiler); $this->set('type', 'checkbox'); }
function preParse($compiler) { $this->set('type', 'hidden'); parent::preParse($compiler); }