API Documentation

Translate/Adapter/Tmx.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Translate
version
$Id: Tmx.php 21050 2010-02-13 22:53:40Z thomas $
Classes
Zend_Translate_Adapter_Tmx

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Translate_Adapter_Tmx

Extends from
Zend_Translate_Adapter
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Translate
Properties
$_file
$_useId
$_srclang
$_tu
$_tuv
$_seg
$_content
$_data
Methods
_loadTranslationData
_startElement
_endElement
_contentElement
_findEncoding
toString

Description

Properties

$_content

 $_content = 'null'

Details

visibility
private
default
null
final
false
static
false

$_data

 $_data = 'array'

Details

visibility
private
default
array
final
false
static
false

$_file

 $_file = 'false'

Details

visibility
private
default
false
final
false
static
false

$_seg

 $_seg = 'null'

Details

visibility
private
default
null
final
false
static
false

$_srclang

 $_srclang = 'null'

Details

visibility
private
default
null
final
false
static
false

$_tu

 $_tu = 'null'

Details

visibility
private
default
null
final
false
static
false

$_tuv

 $_tuv = 'null'

Details

visibility
private
default
null
final
false
static
false

$_useId

 $_useId = 'true'

Details

visibility
private
default
true
final
false
static
false

Methods

_contentElement

_contentElement( resource $file, string $data ) :

Internal method, called by xml element handler for content

Arguments
$file
resource
File handler
$data
string
Elements content
Details
visibility
protected
final
false
static
false

_endElement

_endElement( resource $file, string $name ) :

Internal method, called by xml element handler at end

Arguments
$file
resource
File handler
$name
string
Elements name
Details
visibility
protected
final
false
static
false

_findEncoding

_findEncoding(  $filename ) : string

Internal method, detects the encoding of the xml file

Arguments
$filename
Output
string
Encoding
Details
visibility
protected
final
false
static
false

_loadTranslationData

_loadTranslationData( string $filename, string $locale,  $options = array ) : array

Load translation data (TMX file reader)

Arguments
$filename
string
TMX file to add, full path must be given for access
$locale
string
Locale has no effect for TMX because TMX defines all languages within the source file
$options
Output
array
Details
visibility
protected
final
false
static
false
throws

_startElement

_startElement( resource $file, string $name, array $attrib ) :

Internal method, called by xml element handler at start

Arguments
$file
resource
File handler
$name
string
Elements name
$attrib
array
Attributes for this element
Details
visibility
protected
final
false
static
false

toString

toString( ) : string

Returns the adapter name

Output
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.