TMXResourceBundle

TMXResourceBundle API reference

Package: com\tecnick\tmxphpbridge

File: tce_tmx.php line 34

Tags

  • class: TMXResourceBundle This PHP Class reads resource text data directly from a TMX (XML) file. First, the XMLTMXResourceBundle class instantiates itself with two parameters: a TMX file name and a target language name. Then, using an XML parser, it reads all of a translation unit’s properties for the key information and specified language data and populates the resource array with them (key -> value).
  • brief: TMX-PHP Bridge Class
  • author: Nicola Asuni [tecnick.com]
  • version: 1.1.005

Properties

$parser

File: tce_tmx.php line 36

public mixed $parser

Methods

__construct()

File: tce_tmx.php line 80

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

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)

__destruct()

File: tce_tmx.php line 147

public __destruct() : mixed

getResource()

File: tce_tmx.php line 271

public getResource() : mixed

Tags

  • @return: array.