_mObjNanoSanitizer = new NanoSanitizer(new DummyLogger); } /** * Enter description here... * * @param array $params */ protected function _getSanatizedParameter( $params = array() ) { $this->_mObjNanoSanitizer->setErrorReporting(true); $this->_mObjNanoSanitizer->loadPresets(); $this->_mObjNanoSanitizer->setSignatures($this->_mArrSignatures); $this->_mObjNanoSanitizer->setUnSecureData($params); return $this->_mObjNanoSanitizer->executeSanitization(); } /** * Enter description here... * * @param array $data */ protected function _returnUtf8EncodedData( $data = array() ) { array_walk_recursive($data,array($this,'_encodeUtf8')); return $data; } /** * Enter description here... * * @param mixed $item * @param unknown_type $key */ protected function _encodeUtf8( &$item, $key ) { $item = utf8_encode($item); } } ?>