Esempio n. 1
0
 function visitInput(\cmu\html\form\products\Input $component)
 {
     //if we have a value , type is TEXT and sanitize is set
     //we can only validate TEXT input
     if ($component->getType() == "text" && null !== $component->getSanitize() && null != $component->getValue()) {
         $sanitize = new \cmu\html\form\sanitize\SanitizeContext($component->getSanitize());
         $component->setValue($sanitize->sanitizeText($component->getValue()));
     }
 }
 function visitText(\cmu\html\form\products\Input $component)
 {
     $html = "<span ";
     $html .= $component->getHtmlClass();
     $html .= ">";
     $html .= $component->getValue();
     $html .= "</span>";
     return $html;
 }
 function visitPassword(\cmu\html\form\products\Input $component)
 {
     return $this->returnKeyValue($component->getValue(), $component->getName(), $component->getValue());
 }
Esempio n. 4
0
 function visitPassword(\cmu\html\form\products\Input $component)
 {
     if (null != $component->getValue()) {
         return true;
     }
 }