Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
Complex classes like xajax often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use xajax, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 73 | class xajax |
||
| 74 | { |
||
| 75 | /**#@+ |
||
| 76 | * @access protected |
||
| 77 | */ |
||
| 78 | /** |
||
| 79 | * @var array Array of PHP functions that will be callable through javascript wrappers |
||
| 80 | */ |
||
| 81 | var $aFunctions; |
||
| 82 | /** |
||
| 83 | * @var array Array of object callbacks that will allow Javascript to call PHP methods (key=function name) |
||
| 84 | */ |
||
| 85 | var $aObjects; |
||
| 86 | /** |
||
| 87 | * @var array Array of RequestTypes to be used with each function (key=function name) |
||
| 88 | */ |
||
| 89 | var $aFunctionRequestTypes; |
||
| 90 | /** |
||
| 91 | * @var array Array of Include Files for any external functions (key=function name) |
||
| 92 | */ |
||
| 93 | var $aFunctionIncludeFiles; |
||
| 94 | /** |
||
| 95 | * @var string Name of the PHP function to call if no callable function was found |
||
| 96 | */ |
||
| 97 | var $sCatchAllFunction; |
||
| 98 | /** |
||
| 99 | * @var string Name of the PHP function to call before any other function |
||
| 100 | */ |
||
| 101 | var $sPreFunction; |
||
| 102 | /** |
||
| 103 | * @var string The URI for making requests to the xajax object |
||
| 104 | */ |
||
| 105 | var $sRequestURI; |
||
| 106 | /** |
||
| 107 | * @var string The prefix to prepend to the javascript wraper function name |
||
| 108 | */ |
||
| 109 | var $sWrapperPrefix; |
||
| 110 | /** |
||
| 111 | * @var boolean Show debug messages (default false) |
||
| 112 | */ |
||
| 113 | var $bDebug; |
||
| 114 | /** |
||
| 115 | * @var boolean Show messages in the client browser's status bar (default false) |
||
| 116 | */ |
||
| 117 | var $bStatusMessages; |
||
| 118 | /** |
||
| 119 | * @var boolean Allow xajax to exit after processing a request (default true) |
||
| 120 | */ |
||
| 121 | var $bExitAllowed; |
||
| 122 | /** |
||
| 123 | * @var boolean Use wait cursor in browser (default true) |
||
| 124 | */ |
||
| 125 | var $bWaitCursor; |
||
| 126 | /** |
||
| 127 | * @var boolean Use an special xajax error handler so the errors are sent to the browser properly (default false) |
||
| 128 | */ |
||
| 129 | var $bErrorHandler; |
||
| 130 | /** |
||
| 131 | * @var string Specify what, if any, file xajax should log errors to (and more information in a future release) |
||
| 132 | */ |
||
| 133 | var $sLogFile; |
||
| 134 | /** |
||
| 135 | * @var boolean Clean all output buffers before outputting response (default false) |
||
| 136 | */ |
||
| 137 | var $bCleanBuffer; |
||
| 138 | /** |
||
| 139 | * @var string String containing the character encoding used |
||
| 140 | */ |
||
| 141 | var $sEncoding; |
||
| 142 | /** |
||
| 143 | * @var boolean Decode input request args from UTF-8 (default false) |
||
| 144 | */ |
||
| 145 | var $bDecodeUTF8Input; |
||
| 146 | /** |
||
| 147 | * @var boolean Convert special characters to HTML entities (default false) |
||
| 148 | */ |
||
| 149 | var $bOutputEntities; |
||
| 150 | /** |
||
| 151 | * @var array Array for parsing complex objects |
||
| 152 | */ |
||
| 153 | var $aObjArray; |
||
| 154 | /** |
||
| 155 | * @var integer Position in $aObjArray |
||
| 156 | */ |
||
| 157 | var $iPos; |
||
| 158 | |||
| 159 | /**#@-*/ |
||
| 160 | |||
| 161 | /** |
||
| 162 | * Constructor. You can set some extra xajax options right away or use |
||
| 163 | * individual methods later to set options. |
||
| 164 | * |
||
| 165 | * @param string defaults to the current browser URI |
||
| 166 | * @param string defaults to "xajax_"; |
||
| 167 | * @param string defaults to XAJAX_DEFAULT_CHAR_ENCODING defined above |
||
| 168 | * @param boolean defaults to false |
||
| 169 | */ |
||
| 170 | public function __construct($sRequestURI="",$sWrapperPrefix="xajax_",$sEncoding=XAJAX_DEFAULT_CHAR_ENCODING,$bDebug=false) |
||
| 171 | { |
||
| 172 | $this->aFunctions = array(); |
||
| 173 | $this->aObjects = array(); |
||
| 174 | $this->aFunctionIncludeFiles = array(); |
||
| 175 | $this->sRequestURI = $sRequestURI; |
||
| 176 | if ($this->sRequestURI == "") |
||
| 177 | $this->sRequestURI = $this->_detectURI(); |
||
| 178 | $this->sWrapperPrefix = $sWrapperPrefix; |
||
| 179 | $this->bDebug = $bDebug; |
||
| 180 | $this->bStatusMessages = false; |
||
| 181 | $this->bWaitCursor = true; |
||
| 182 | $this->bExitAllowed = true; |
||
| 183 | $this->bErrorHandler = false; |
||
| 184 | $this->sLogFile = ""; |
||
| 185 | $this->bCleanBuffer = false; |
||
| 186 | $this->setCharEncoding($sEncoding); |
||
| 187 | $this->bDecodeUTF8Input = false; |
||
| 188 | $this->bOutputEntities = false; |
||
| 189 | } |
||
| 190 | |||
| 191 | /** |
||
| 192 | * Sets the URI to which requests will be made. |
||
| 193 | * <i>Usage:</i> <kbd>$xajax->setRequestURI("http://www.xajaxproject.org");</kbd> |
||
| 194 | * |
||
| 195 | * @param string the URI (can be absolute or relative) of the PHP script |
||
| 196 | * that will be accessed when an xajax request occurs |
||
| 197 | */ |
||
| 198 | function setRequestURI($sRequestURI) |
||
| 202 | |||
| 203 | /** |
||
| 204 | * Sets the prefix that will be appended to the Javascript wrapper |
||
| 205 | * functions (default is "xajax_"). |
||
| 206 | * |
||
| 207 | * @param string |
||
| 208 | */ |
||
| 209 | // |
||
| 210 | function setWrapperPrefix($sPrefix) |
||
| 214 | |||
| 215 | /** |
||
| 216 | * Enables debug messages for xajax. |
||
| 217 | * */ |
||
| 218 | function debugOn() |
||
| 222 | |||
| 223 | /** |
||
| 224 | * Disables debug messages for xajax (default behavior). |
||
| 225 | */ |
||
| 226 | function debugOff() |
||
| 230 | |||
| 231 | /** |
||
| 232 | * Enables messages in the browser's status bar for xajax. |
||
| 233 | */ |
||
| 234 | function statusMessagesOn() |
||
| 238 | |||
| 239 | /** |
||
| 240 | * Disables messages in the browser's status bar for xajax (default behavior). |
||
| 241 | */ |
||
| 242 | function statusMessagesOff() |
||
| 246 | |||
| 247 | /** |
||
| 248 | * Enables the wait cursor to be displayed in the browser (default behavior). |
||
| 249 | */ |
||
| 250 | function waitCursorOn() |
||
| 254 | |||
| 255 | /** |
||
| 256 | * Disables the wait cursor to be displayed in the browser. |
||
| 257 | */ |
||
| 258 | function waitCursorOff() |
||
| 262 | |||
| 263 | /** |
||
| 264 | * Enables xajax to exit immediately after processing a request and |
||
| 265 | * sending the response back to the browser (default behavior). |
||
| 266 | */ |
||
| 267 | function exitAllowedOn() |
||
| 271 | |||
| 272 | /** |
||
| 273 | * Disables xajax's default behavior of exiting immediately after |
||
| 274 | * processing a request and sending the response back to the browser. |
||
| 275 | */ |
||
| 276 | function exitAllowedOff() |
||
| 280 | |||
| 281 | /** |
||
| 282 | * Turns on xajax's error handling system so that PHP errors that occur |
||
| 283 | * during a request are trapped and pushed to the browser in the form of |
||
| 284 | * a Javascript alert. |
||
| 285 | */ |
||
| 286 | function errorHandlerOn() |
||
| 290 | |||
| 291 | /** |
||
| 292 | * Turns off xajax's error handling system (default behavior). |
||
| 293 | */ |
||
| 294 | function errorHandlerOff() |
||
| 298 | |||
| 299 | /** |
||
| 300 | * Specifies a log file that will be written to by xajax during a request |
||
| 301 | * (used only by the error handling system at present). If you don't invoke |
||
| 302 | * this method, or you pass in "", then no log file will be written to. |
||
| 303 | * <i>Usage:</i> <kbd>$xajax->setLogFile("/xajax_logs/errors.log");</kbd> |
||
| 304 | */ |
||
| 305 | function setLogFile($sFilename) |
||
| 309 | |||
| 310 | /** |
||
| 311 | * Causes xajax to clean out all output buffers before outputting a |
||
| 312 | * response (default behavior). |
||
| 313 | */ |
||
| 314 | function cleanBufferOn() |
||
| 318 | /** |
||
| 319 | * Turns off xajax's output buffer cleaning. |
||
| 320 | */ |
||
| 321 | function cleanBufferOff() |
||
| 325 | |||
| 326 | /** |
||
| 327 | * Sets the character encoding for the HTTP output based on |
||
| 328 | * <kbd>$sEncoding</kbd>, which is a string containing the character |
||
| 329 | * encoding to use. You don't need to use this method normally, since the |
||
| 330 | * character encoding for the response gets set automatically based on the |
||
| 331 | * <kbd>XAJAX_DEFAULT_CHAR_ENCODING</kbd> constant. |
||
| 332 | * <i>Usage:</i> <kbd>$xajax->setCharEncoding("utf-8");</kbd> |
||
| 333 | * |
||
| 334 | * @param string the encoding type to use (utf-8, iso-8859-1, etc.) |
||
| 335 | */ |
||
| 336 | function setCharEncoding($sEncoding) |
||
| 340 | |||
| 341 | /** |
||
| 342 | * Causes xajax to decode the input request args from UTF-8 to the current |
||
| 343 | * encoding if possible. Either the iconv or mb_string extension must be |
||
| 344 | * present for optimal functionality. |
||
| 345 | */ |
||
| 346 | function decodeUTF8InputOn() |
||
| 350 | |||
| 351 | /** |
||
| 352 | * Turns off decoding the input request args from UTF-8 (default behavior). |
||
| 353 | */ |
||
| 354 | function decodeUTF8InputOff() |
||
| 358 | |||
| 359 | /** |
||
| 360 | * Tells the response object to convert special characters to HTML entities |
||
| 361 | * automatically (only works if the mb_string extension is available). |
||
| 362 | */ |
||
| 363 | function outputEntitiesOn() |
||
| 367 | |||
| 368 | /** |
||
| 369 | * Tells the response object to output special characters intact. (default |
||
| 370 | * behavior). |
||
| 371 | */ |
||
| 372 | function outputEntitiesOff() |
||
| 376 | |||
| 377 | /** |
||
| 378 | * Registers a PHP function or method to be callable through xajax in your |
||
| 379 | * Javascript. If you want to register a function, pass in the name of that |
||
| 380 | * function. If you want to register a static class method, pass in an |
||
| 381 | * array like so: |
||
| 382 | * <kbd>array("myFunctionName", "myClass", "myMethod")</kbd> |
||
| 383 | * For an object instance method, use an object variable for the second |
||
| 384 | * array element (and in PHP 4 make sure you put an & before the variable |
||
| 385 | * to pass the object by reference). Note: the function name is what you |
||
| 386 | * call via Javascript, so it can be anything as long as it doesn't |
||
| 387 | * conflict with any other registered function name. |
||
| 388 | * |
||
| 389 | * <i>Usage:</i> <kbd>$xajax->registerFunction("myFunction");</kbd> |
||
| 390 | * or: <kbd>$xajax->registerFunction(array("myFunctionName", &$myObject, "myMethod"));</kbd> |
||
| 391 | * |
||
| 392 | * @param mixed contains the function name or an object callback array |
||
| 393 | * @param mixed request type (XAJAX_GET/XAJAX_POST) that should be used |
||
| 394 | * for this function. Defaults to XAJAX_POST. |
||
| 395 | */ |
||
| 396 | function registerFunction($mFunction,$sRequestType=XAJAX_POST) |
||
| 408 | |||
| 409 | /** |
||
| 410 | * Registers a PHP function to be callable through xajax which is located |
||
| 411 | * in some other file. If the function is requested the external file will |
||
| 412 | * be included to define the function before the function is called. |
||
| 413 | * |
||
| 414 | * <i>Usage:</i> <kbd>$xajax->registerExternalFunction("myFunction","myFunction.inc.php",XAJAX_POST);</kbd> |
||
| 415 | * |
||
| 416 | * @param string contains the function name or an object callback array |
||
| 417 | * ({@link xajax::registerFunction() see registerFunction} for |
||
| 418 | * more info on object callback arrays) |
||
| 419 | * @param string contains the path and filename of the include file |
||
| 420 | * @param mixed the RequestType (XAJAX_GET/XAJAX_POST) that should be used |
||
| 421 | * for this function. Defaults to XAJAX_POST. |
||
| 422 | */ |
||
| 423 | function registerExternalFunction($mFunction,$sIncludeFile,$sRequestType=XAJAX_POST) |
||
| 434 | |||
| 435 | /** |
||
| 436 | * Registers a PHP function to be called when xajax cannot find the |
||
| 437 | * function being called via Javascript. Because this is technically |
||
| 438 | * impossible when using "wrapped" functions, the catch-all feature is |
||
| 439 | * only useful when you're directly using the xajax.call() Javascript |
||
| 440 | * method. Use the catch-all feature when you want more dynamic ability to |
||
| 441 | * intercept unknown calls and handle them in a custom way. |
||
| 442 | * |
||
| 443 | * <i>Usage:</i> <kbd>$xajax->registerCatchAllFunction("myCatchAllFunction");</kbd> |
||
| 444 | * |
||
| 445 | * @param string contains the function name or an object callback array |
||
| 446 | * ({@link xajax::registerFunction() see registerFunction} for |
||
| 447 | * more info on object callback arrays) |
||
| 448 | */ |
||
| 449 | View Code Duplication | function registerCatchAllFunction($mFunction) |
|
| 459 | |||
| 460 | /** |
||
| 461 | * Registers a PHP function to be called before xajax calls the requested |
||
| 462 | * function. xajax will automatically add the request function's response |
||
| 463 | * to the pre-function's response to create a single response. Another |
||
| 464 | * feature is the ability to return not just a response, but an array with |
||
| 465 | * the first element being false (a boolean) and the second being the |
||
| 466 | * response. In this case, the pre-function's response will be returned to |
||
| 467 | * the browser without xajax calling the requested function. |
||
| 468 | * |
||
| 469 | * <i>Usage:</i> <kbd>$xajax->registerPreFunction("myPreFunction");</kbd> |
||
| 470 | * |
||
| 471 | * @param string contains the function name or an object callback array |
||
| 472 | * ({@link xajax::registerFunction() see registerFunction} for |
||
| 473 | * more info on object callback arrays) |
||
| 474 | */ |
||
| 475 | View Code Duplication | function registerPreFunction($mFunction) |
|
| 485 | |||
| 486 | /** |
||
| 487 | * Returns true if xajax can process the request, false if otherwise. |
||
| 488 | * You can use this to determine if xajax needs to process the request or |
||
| 489 | * not. |
||
| 490 | * |
||
| 491 | * @return boolean |
||
| 492 | */ |
||
| 493 | function canProcessRequests() |
||
| 498 | |||
| 499 | /** |
||
| 500 | * Returns the current request mode (XAJAX_GET or XAJAX_POST), or -1 if |
||
| 501 | * there is none. |
||
| 502 | * |
||
| 503 | * @return mixed |
||
| 504 | */ |
||
| 505 | function getRequestMode() |
||
| 515 | |||
| 516 | /** |
||
| 517 | * This is the main communications engine of xajax. The engine handles all |
||
| 518 | * incoming xajax requests, calls the apporiate PHP functions (or |
||
| 519 | * class/object methods) and passes the XML responses back to the |
||
| 520 | * Javascript response handler. If your RequestURI is the same as your Web |
||
| 521 | * page then this function should be called before any headers or HTML has |
||
| 522 | * been sent. |
||
| 523 | */ |
||
| 524 | function processRequests() |
||
| 702 | |||
| 703 | /** |
||
| 704 | * Prints the xajax Javascript header and wrapper code into your page by |
||
| 705 | * printing the output of the getJavascript() method. It should only be |
||
| 706 | * called between the <pre><head> </head></pre> tags in your HTML page. |
||
| 707 | * Remember, if you only want to obtain the result of this function, use |
||
| 708 | * {@link xajax::getJavascript()} instead. |
||
| 709 | * |
||
| 710 | * <i>Usage:</i> |
||
| 711 | * <code> |
||
| 712 | * <head> |
||
| 713 | * ... |
||
| 714 | * < ?php $xajax->printJavascript(); ? > |
||
| 715 | * </code> |
||
| 716 | * |
||
| 717 | * @param string the relative address of the folder where xajax has been |
||
| 718 | * installed. For instance, if your PHP file is |
||
| 719 | * "http://www.myserver.com/myfolder/mypage.php" |
||
| 720 | * and xajax was installed in |
||
| 721 | * "http://www.myserver.com/anotherfolder", then $sJsURI |
||
| 722 | * should be set to "../anotherfolder". Defaults to assuming |
||
| 723 | * xajax is in the same folder as your PHP file. |
||
| 724 | * @param string the relative folder/file pair of the xajax Javascript |
||
| 725 | * engine located within the xajax installation folder. |
||
| 726 | * Defaults to xajax_js/xajax.js. |
||
| 727 | */ |
||
| 728 | function printJavascript($sJsURI="", $sJsFile=NULL) |
||
| 732 | |||
| 733 | /** |
||
| 734 | * Returns the xajax Javascript code that should be added to your HTML page |
||
| 735 | * between the <kbd><head> </head></kbd> tags. |
||
| 736 | * |
||
| 737 | * <i>Usage:</i> |
||
| 738 | * <code> |
||
| 739 | * < ?php $xajaxJSHead = $xajax->getJavascript(); ? > |
||
| 740 | * <head> |
||
| 741 | * ... |
||
| 742 | * < ?php echo $xajaxJSHead; ? > |
||
| 743 | * </code> |
||
| 744 | * |
||
| 745 | * @param string the relative address of the folder where xajax has been |
||
| 746 | * installed. For instance, if your PHP file is |
||
| 747 | * "http://www.myserver.com/myfolder/mypage.php" |
||
| 748 | * and xajax was installed in |
||
| 749 | * "http://www.myserver.com/anotherfolder", then $sJsURI |
||
| 750 | * should be set to "../anotherfolder". Defaults to assuming |
||
| 751 | * xajax is in the same folder as your PHP file. |
||
| 752 | * @param string the relative folder/file pair of the xajax Javascript |
||
| 753 | * engine located within the xajax installation folder. |
||
| 754 | * Defaults to xajax_js/xajax.js. |
||
| 755 | * @return string |
||
| 756 | */ |
||
| 757 | function getJavascript($sJsURI="", $sJsFile=NULL) |
||
| 764 | |||
| 765 | /** |
||
| 766 | * Returns a string containing inline Javascript that sets up the xajax |
||
| 767 | * runtime (typically called internally by xajax from get/printJavascript). |
||
| 768 | * |
||
| 769 | * @return string |
||
| 770 | */ |
||
| 771 | function getJavascriptConfig() |
||
| 789 | |||
| 790 | /** |
||
| 791 | * Returns a string containing a Javascript include of the xajax.js file |
||
| 792 | * along with a check to see if the file loaded after six seconds |
||
| 793 | * (typically called internally by xajax from get/printJavascript). |
||
| 794 | * |
||
| 795 | * @param string the relative address of the folder where xajax has been |
||
| 796 | * installed. For instance, if your PHP file is |
||
| 797 | * "http://www.myserver.com/myfolder/mypage.php" |
||
| 798 | * and xajax was installed in |
||
| 799 | * "http://www.myserver.com/anotherfolder", then $sJsURI |
||
| 800 | * should be set to "../anotherfolder". Defaults to assuming |
||
| 801 | * xajax is in the same folder as your PHP file. |
||
| 802 | * @param string the relative folder/file pair of the xajax Javascript |
||
| 803 | * engine located within the xajax installation folder. |
||
| 804 | * Defaults to xajax_js/xajax.js. |
||
| 805 | * @return string |
||
| 806 | */ |
||
| 807 | function getJavascriptInclude($sJsURI="", $sJsFile=NULL) |
||
| 819 | |||
| 820 | /** |
||
| 821 | * This method can be used to create a new xajax.js file out of the |
||
| 822 | * xajax_uncompressed.js file (which will only happen if xajax.js doesn't |
||
| 823 | * already exist on the filesystem). |
||
| 824 | * |
||
| 825 | * @param string an optional argument containing the full server file path |
||
| 826 | * of xajax.js. |
||
| 827 | */ |
||
| 828 | function autoCompressJavascript($sJsFullFilename=NULL) |
||
| 859 | |||
| 860 | /** |
||
| 861 | * Returns the current URL based upon the SERVER vars. |
||
| 862 | * |
||
| 863 | * @access private |
||
| 864 | * @return string |
||
| 865 | */ |
||
| 866 | function _detectURI() { |
||
| 942 | |||
| 943 | /** |
||
| 944 | * Returns true if the function name is associated with an object callback, |
||
| 945 | * false if not. |
||
| 946 | * |
||
| 947 | * @param string the name of the function |
||
| 948 | * @access private |
||
| 949 | * @return boolean |
||
| 950 | */ |
||
| 951 | function _isObjectCallback($sFunction) |
||
| 956 | |||
| 957 | /** |
||
| 958 | * Returns true if the function or object callback can be called, false if |
||
| 959 | * not. |
||
| 960 | * |
||
| 961 | * @param string the name of the function |
||
| 962 | * @access private |
||
| 963 | * @return boolean |
||
| 964 | */ |
||
| 965 | function _isFunctionCallable($sFunction) |
||
| 979 | |||
| 980 | /** |
||
| 981 | * Calls the function, class method, or object method with the supplied |
||
| 982 | * arguments. |
||
| 983 | * |
||
| 984 | * @param string the name of the function |
||
| 985 | * @param array arguments to pass to the function |
||
| 986 | * @access private |
||
| 987 | * @return mixed the output of the called function or method |
||
| 988 | */ |
||
| 989 | function _callFunction($sFunction, $aArgs) |
||
| 999 | |||
| 1000 | /** |
||
| 1001 | * Generates the Javascript wrapper for the specified PHP function. |
||
| 1002 | * |
||
| 1003 | * @param string the name of the function |
||
| 1004 | * @param mixed the request type |
||
| 1005 | * @access private |
||
| 1006 | * @return string |
||
| 1007 | */ |
||
| 1008 | function _wrap($sFunction,$sRequestType=XAJAX_POST) |
||
| 1013 | |||
| 1014 | /** |
||
| 1015 | * Takes a string containing xajax xjxobj XML or xjxquery XML and builds an |
||
| 1016 | * array representation of it to pass as an argument to the PHP function |
||
| 1017 | * being called. |
||
| 1018 | * |
||
| 1019 | * @param string the root tag of the XML |
||
| 1020 | * @param string XML to convert |
||
| 1021 | * @access private |
||
| 1022 | * @return array |
||
| 1023 | */ |
||
| 1024 | function _xmlToArray($rootTag, $sXml) |
||
| 1045 | |||
| 1046 | /** |
||
| 1047 | * A recursive function that generates an array from the contents of |
||
| 1048 | * $this->aObjArray. |
||
| 1049 | * |
||
| 1050 | * @param string the root tag of the XML |
||
| 1051 | * @access private |
||
| 1052 | * @return array |
||
| 1053 | */ |
||
| 1054 | function _parseObjXml($rootTag) |
||
| 1148 | |||
| 1149 | /** |
||
| 1150 | * Decodes string data from UTF-8 to the current xajax encoding. |
||
| 1151 | * |
||
| 1152 | * @param string data to convert |
||
| 1153 | * @access private |
||
| 1154 | * @return string converted data |
||
| 1155 | */ |
||
| 1156 | function _decodeUTF8Data($sData) |
||
| 1214 | |||
| 1215 | }// end class xajax |
||
| 1216 | |||
| 1251 |