lib/ezi18n/classes/eztextcodec.php
File containing the eZTextCodec class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
\eZTextCodec
Package: lib
File containing the eZTextCodec class.
- Children
- \eZCodePageCodec
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Methods


eZTextCodec(
$inputCharsetCode, $outputCharsetCode, $realInputCharsetCode, $realOutputCharsetCode, $inputEncoding, $outputEncoding
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$inputCharsetCode | ||
$outputCharsetCode | ||
$realInputCharsetCode | ||
$realOutputCharsetCode | ||
$inputEncoding | ||
$outputEncoding |


initializeConversionFunction(
$encodingConvertInitMap, $encodingConvertInitFunction
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$encodingConvertInitMap | ||
$encodingConvertInitFunction |


instance(
string | false $inputCharsetCode, string | false $outputCharsetCode
=
false, bool $alwaysReturn
=
true
)
:
\eZTextCodec | null
static
Returns a shared instance of the eZTextCodec pr the $inputCharsetCode and $outputCharsetCode params.
Parameters
Returns
Name | Type | Description |
---|---|---|
$inputCharsetCode | string | false | Uses {@link eZTextCodec::internalCharset()} if false |
$outputCharsetCode | string | false | Uses {@link eZTextCodec::internalCharset()} if false |
$alwaysReturn | bool |
Type | Description |
---|---|
\eZTextCodec | null | Returns null if $alwaysReturn is false and text codec is not needed for current $inputCharsetCode and $outputCharsetCode. |