// methods for conversion from user interface String ---------------------- /** clean up a request string. * @param string $requestString from PntRequestHandler::getRequestParam */ function fromRequestData($requestString) { if ($requestString===null) return null; return $this->type == 'html' ? $this->sanitizeHtml($requestString) : $this->sanitizeString($requestString); } |