Class MagicQuotesUtil

Description

A Utility Class for handling MagicQuotes.

This class provides just one public method: undo. Calling this method will undo all magic quoting performed by the PHP Engine. Using this class allows you to write code that works with every setup - magic quotes enabled or not. Usage:


1 require_once('MagicQuotesUtil/MagicQuotesUtil.php');
2 MagicQuotesUtil::undo();
Please note that global variables will stay untouched!

Located in /code/framework/MagicQuotesUtil/MagicQuotesUtil.php (line 44)


	
			
Method Summary
void undo ()
void _removeFromArray (mixed &$array)
Methods
undo (line 55)

Undoes all magic quoting performed by the PHP Engine.

This method removes the magic quotes from $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $_REQUEST, $_GET, $_POST and $_COOKIE. Please note that global variables will stay untouched! You can call this method only once. Calling it a second time will have no effect.

  • access: public
void undo ()
_removeFromArray (line 76)

Removes all magic quotes from the array passed by reference.

  • access: private
void _removeFromArray (mixed &$array)

Documentation generated on Mon, 8 Dec 2003 13:10:36 +0100 by phpDocumentor 1.2.3