Converts strings to the right encoding in incoming and outgoing packets.
This plugin can be deactivated if all three tiers (DB, PHP, client) use the same charset, usually utf8. This works for nested objects.
Located in /Amfphp/Plugins/AmfphpCharsetConverter/AmfphpCharsetConverter.php (line 20)
the Charset that is used by the client. default utf-8 See all the possible codepages for iconv here: http://www.gnu.org/software/libiconv/
the reencoding method. One of the METHOD_XXX consts defined above.
the Charset that is used in php default utf-8.
See all the possible codepages for iconv here: http://www.gnu.org/software/libiconv/
constructor.
converts the strings note: This is not a recursive function. Rather the recursion is handled by Amfphp_Core_Amf_Util::applyFunctionToContainedObjects.
must be public so that Amfphp_Core_Amf_Util::applyFunctionToContainedObjects can call it
note: This is not a recursive function. Rather the recusrion is handled by Amfphp_Core_Amf_Util::applyFunctionToContainedObjects.
must be public so that Amfphp_Core_Amf_Util::applyFunctionToContainedObjects can call it
converts untyped objects to their typed counterparts. Loads the class if necessary
looks at the response and sets the explicit type field so that the serializer sends it properly
convert the string. finds the proper encoding depending on direction
DIRECTION_CLIENT_TO_PHP
= 1
(line 60)
transliterate direction
DIRECTION_PHP_TO_CLIENT
= 0
(line 55)
transliterate direction
METHOD_ICONV
= 'iconv'
(line 29)
uses the iconv library for reencoding
METHOD_MBSTRING
= 'mbstring'
(line 34)
uses the mbstring library for reencoding
METHOD_NONE
= 'none'
(line 24)
don't do anything
METHOD_RECODE
= 'recode'
(line 39)
uses the recode library for reencoding
METHOD_UTF8_DECODE
= 'utf8_decode'
(line 44)
uses the XML function utf8_decode and encode for reencoding - ISO-8859-1 only
Documentation generated on Mon, 23 Jan 2012 17:22:01 -0300 by phpDocumentor 1.4.3