TMXResourceBundle

TMXResourceBundle API reference

class TMXResourceBundle

Source: shared/code/tce_tmx.php:34

Properties

$parser

public $parser

Source: shared/code/tce_tmx.php:36

Methods

__construct()

Class constructor.

public __construct(mixed $tmxfile, mixed $language, mixed $cachefile = '')

Parameters:

  • $tmxfile (mixed): (string) TMX (XML) file name
  • $language (mixed): (string) ISO language identifier (a two- or three-letter code)
  • $cachefile (mixed): (string) set filename for cache (leave blank to exclude cache)

Source: shared/code/tce_tmx.php:80

__destruct()

Class destructor; resets $resource array.

public __destruct()

Source: shared/code/tce_tmx.php:147

getResource()

Returns the resource array containing the translated word/sentences.

public getResource()

Source: shared/code/tce_tmx.php:271