예제 #1
0
 public function __invoke(ElementInterface $element = null)
 {
     if ($element && !$element->hasAttribute('class')) {
         $this->addClass($element, 'form-control');
     }
     return parent::__invoke($element);
 }
예제 #2
0
 /**
  * Time
  *
  * @param ElementInterface|null $element
  * @return string|Helper\FormInput
  */
 public function time(ElementInterface $element = null)
 {
     $helper = new Helper\FormTime();
     return $helper->__invoke($element);
 }