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