Exemplo n.º 1
0
 public function render(ElementInterface $element)
 {
     if ($element->getOption('static')) {
         return $this->getView()->formElementStatic($element);
     }
     return parent::render($element);
 }
Exemplo n.º 2
0
 /**
  * Number
  *
  * @param ElementInterface|null $element
  * @return string|Helper\FormInput
  */
 public function number(ElementInterface $element = null)
 {
     $helper = new Helper\FormNumber();
     return $helper->__invoke($element);
 }