Esempio n. 1
0
 function visitTextArea(\cmu\html\form\products\TextArea $component)
 {
     $html = "<span ";
     $html .= $component->getHtmlClass();
     $html .= ">";
     $html .= $component->getTextareatext();
     $html .= "</span>";
     return $html;
 }
Esempio n. 2
0
 function visitTextArea(\cmu\html\form\products\TextArea $component)
 {
     $html = "<textarea ";
     $html .= $component->getAttributes();
     $html .= ">";
     $html .= $component->getTextareatext();
     $html .= "</textarea>";
     $html .= $component->returnHint();
     $html .= $component->returnErrorMessage();
     return $html;
 }
Esempio n. 3
0
 function visitTextArea(\cmu\html\form\products\TextArea $component)
 {
     //we can only validate TEXT input
     if (null !== $component->getFiltertype()) {
         $validator = new \cmu\html\form\validate\ValidatorContext($component->getFiltertype());
         if ($validator->validateText($component->getText())) {
             return true;
         } else {
             $component->setErrormessage($validator->getErrorMessagesString());
             //set Fielderrormessage in $component
         }
         //no filter to check against
     } else {
         return true;
     }
 }
Esempio n. 4
0
 function visitTextArea(\cmu\html\form\products\TextArea $component)
 {
     if (null !== $component->getSanitize() && null != $component->getText()) {
         $sanitize = new \cmu\html\form\sanitize\SanitizeContext($component->getSanitize());
         $component->setText($sanitize->sanitizeText($component->getText()));
     }
 }
Esempio n. 5
0
 function visitTextArea(\cmu\html\form\products\TextArea $component)
 {
     if (null !== $component->getText()) {
         return $component->getName() . ";" . $component->getText();
     }
 }
Esempio n. 6
0
 function visitTextArea(\cmu\html\form\products\TextArea $component)
 {
     if (null != $component->getText()) {
         return true;
     }
 }