Пример #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;
     }
 }