Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
Transcoder Class Reference

Public Member Functions

 trans ($string)
 
 Transcoder ($fromEncoding, $toEncoding, $translit=false)
 

Public Attributes

 $fromEncoding
 
 $toEncoding
 
 $translit
 

Detailed Description

Multi-class transcoder; uses mbstring and iconv if available, otherwise falls back to built-in classes.

Definition at line 17 of file Transcoder.inc.php.

Member Function Documentation

Transcoder::trans (   $string)

Transcode a string

Parameters
$stringstring String to transcode
Returns
string Result of transcoding

Definition at line 53 of file Transcoder.inc.php.

Transcoder::Transcoder (   $fromEncoding,
  $toEncoding,
  $translit = false 
)

Constructor

Parameters
$fromEncodingstring Name of source encoding
$toEncodingstring Name of target encoding
$translitboolean Whether or not to transliterate while transcoding

Definition at line 42 of file Transcoder.inc.php.

Member Data Documentation

string Transcoder::$fromEncoding

Name of source encoding

Definition at line 22 of file Transcoder.inc.php.

string Transcoder::$toEncoding

Name of target encoding

Definition at line 28 of file Transcoder.inc.php.

boolean Transcoder::$translit

Whether or not to transliterate while transcoding

Definition at line 34 of file Transcoder.inc.php.


The documentation for this class was generated from the following file: