function visitTextArea(\cmu\html\form\products\TextArea $component)
 {
     $html = "<span ";
     $html .= $component->getHtmlClass();
     $html .= ">";
     $html .= $component->getTextareatext();
     $html .= "</span>";
     return $html;
 }
 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;
 }
Exemple #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;
     }
 }
Exemple #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()));
     }
 }
 function visitTextArea(\cmu\html\form\products\TextArea $component)
 {
     if (null !== $component->getText()) {
         return $component->getName() . ";" . $component->getText();
     }
 }
Exemple #6
0
 function visitTextArea(\cmu\html\form\products\TextArea $component)
 {
     if (null != $component->getText()) {
         return true;
     }
 }