예제 #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()));
     }
 }
예제 #2
0
 function visitText(\cmu\html\form\products\Input $component)
 {
     $html = "<span ";
     $html .= $component->getHtmlClass();
     $html .= ">";
     $html .= $component->getValue();
     $html .= "</span>";
     return $html;
 }
예제 #3
0
 function visitPassword(\cmu\html\form\products\Input $component)
 {
     return $this->returnKeyValue($component->getValue(), $component->getName(), $component->getValue());
 }
예제 #4
0
 function visitPassword(\cmu\html\form\products\Input $component)
 {
     if (null != $component->getValue()) {
         return true;
     }
 }