Exemplo n.º 1
0
Arquivo: Form.php Projeto: cmsx/form
 /**
  * Отрисовка элемента формы по шаблону
  * is_required, label, input, info, errors
  */
 protected function renderElementByTemplate($tmpl, Element $element)
 {
     return sprintf($tmpl, $this->renderIsRequired($element->getIsRequired()), $element->getLabel(), $element->render(), $element->getInfo(), $this->renderElementErrors($element->getErrors()));
 }
Exemplo n.º 2
0
 public function getOptions()
 {
     return parent::getOptions();
 }
Exemplo n.º 3
0
 /**
  * Значение поля формы
  * @param bool $clean - экранировать ли вывод
  */
 public function getValue($clean = true)
 {
     return $this->is_checked ? $clean ? htmlspecialchars($this->checkbox_value) : $this->checkbox_value : parent::getValue($clean);
 }