Class: Translation2
Source Location: /Translation2-2.0.4/Translation2.php
Translation2 base class
Author(s):
Copyright:
- 2004-2008 Lorenzo Alberton
|
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
Translation2 (Constructor) [line 125]
Translation2 Translation2(
)
|
|
Constructor
factory [line 151]
object Translation2 &factory(
string
$driver, [mixed
$options = ''], [array
$params = array()])
|
|
Return a Translation2 instance already initialized
Overridden in child classes as:
- Translation2_Admin::factory()
- Return a Translation2_Admin instance already initialized
Parameters:
get [line 512]
getDecorator [line 257]
object Decorator &getDecorator(
string
$decorator)
|
|
Return an instance of a decorator This method is used to get a decorator instance. A decorator can be seen as a filter, i.e. something that can change or handle the values of the objects/vars that pass through.
Overridden in child classes as:
- Translation2_Decorator::getDecorator()
- Return an instance of a decorator
Parameters:
getLang [line 344]
getLangs [line 380]
getPage [line 555]
array getPage(
[string
$pageID = TRANSLATION2_DEFAULT_PAGEID], [string
$langID = null])
|
|
Get an entire group of strings Same as getRawPage, but resort to fallback language and replace parameters when needed
Overridden in child classes as:
- Translation2_Decorator::getPage()
- Same as getRawPage, but resort to fallback language and replace parameters when needed
- Translation2_Decorator_Iconv::getPage()
- Same as getRawPage, but apply transformations when needed
- Translation2_Decorator_DefaultText::getPage()
- Replace empty strings with their $stringID
- Translation2_Decorator_CacheMemory::getPage()
- Same as getRawPage, but resort to fallback language and replace parameters when needed
- Translation2_Decorator_Lang::getPage()
- Same as getRawPage, but resort to fallback language and replace parameters when needed
- Translation2_Decorator_ErrorText::getPage()
- Same as getRawPage, but resort to fallback language and replace parameters when needed
- Translation2_Decorator_UTF8::getPage()
- Same as getRawPage, but resort to fallback language and replace parameters when needed
- Translation2_Decorator_SpecialChars::getPage()
- Same as getRawPage, but apply transformations when needed
- Translation2_Decorator_CacheLiteFunction::getPage()
- Same as getRawPage, but resort to fallback language and replace parameters when needed
Parameters:
getRaw [line 483]
getRawPage [line 535]
getStringID [line 574]
replaceEmptyStringsWithKeys [line 457]
setCharset [line 281]
void|PEAR_Error setCharset(
string
$charset)
|
|
Set charset used to read/store the translations
Overridden in child classes as:
- Translation2_Decorator::setCharset()
- Set charset used to read/store the translations
Parameters:
setContainerOptions [line 201]
setLang [line 301]
setPageID [line 324]
self setPageID(
[string
$pageID = null])
|
|
Set default page Set the page (aka "group of strings") that shall be used when retrieving strings. If you set it, you don't have to state it in each get() call.
Overridden in child classes as:
- Translation2_Decorator::setPageID()
- Set default page
Parameters:
setParams [line 398]
self setParams(
[array
$params = null])
|
|
Set parameters for next string Set the replacement for the parameters in the string(s). Parameter delimiters are customizable.
Overridden in child classes as:
- Translation2_Decorator::setParams()
- Set parameters for next string
Parameters:
_replaceParams [line 421]
__clone [line 591]
Clone internal object references This method is called automatically by PHP5
Overridden in child classes as:
- Translation2_Decorator::__clone()
- Clone internal object references
Documentation generated on Mon, 11 Mar 2019 15:41:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|