Translate/Adapter/Tmx.php
- 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 = 'null'
Details
- visibility
- private
- default
- null
- final
- false
- static
- false
$_data = 'array'
Details
- visibility
- private
- default
- array
- final
- false
- static
- false
$_file = 'false'
Details
- visibility
- private
- default
- false
- final
- false
- static
- false
$_seg = 'null'
Details
- visibility
- private
- default
- null
- final
- false
- static
- false
$_srclang = 'null'
Details
- visibility
- private
- default
- null
- final
- false
- static
- false
$_tu = 'null'
Details
- visibility
- private
- default
- null
- final
- false
- static
- false
$_tuv = 'null'
Details
- visibility
- private
- default
- null
- final
- false
- static
- false
$_useId = 'true'
Details
- visibility
- private
- default
- true
- final
- false
- static
- false
Methods
_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(
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(
$filename
)
:
string
Internal method, detects the encoding of the xml file
Details
- visibility
- protected
- final
- false
- static
- false
_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
Details
- visibility
- protected
- final
- false
- static
- false
- throws
_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(
)
:
string
Returns the adapter name
Details
- visibility
- public
- final
- false
- static
- false