Class: Translation2
Source Location: /Translation2-2.0.0beta10/Translation2.php
Translation2 base class
Author(s):
Copyright:
- 2004-2005 Lorenzo Alberton
|
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
Translation2 (Constructor) [line 124]
Translation2 Translation2(
)
|
|
Constructor
factory [line 149]
object Translation2 &factory(
$driver, [mixed
$options = ''], [array
$params = array()], string
$storageDriver)
|
|
Return a Translation2 instance already initialized
Overridden in child classes as:
- Translation2_Admin::factory()
- Return a Translation2_Admin instance already initialized
Parameters:
get [line 469]
getDecorator [line 251]
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 313]
mixed getLang(
[string
$langID = null], [string
$format = 'name'])
|
|
get lang info Get some extra information about the language (its full name, the localized error text, ...)
Overridden in child classes as:
- Translation2_Decorator::getLang()
- get lang info
Parameters:
getLangs [line 348]
array getLangs(
[string
$format = 'name'])
|
|
get langs Get some extra information about the languages (their full names, the localized error text, their codes, ...)
Overridden in child classes as:
- Translation2_Decorator::getLangs()
- get langs
Parameters:
getPage [line 510]
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 441]
getRawPage [line 491]
getStringID [line 528]
replaceEmptyStringsWithKeys [line 416]
setContainerOptions [line 198]
setLang [line 275]
void setLang(
string
$langID)
|
|
Set default lang Set the language that shall be used when retrieving strings.
Overridden in child classes as:
- Translation2_Decorator::setLang()
- Set default lang
Parameters:
setPageID [line 295]
void setPageID(
[
$pageID = null], string
$langID)
|
|
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 364]
void 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 383]
__clone [line 544]
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 14:41:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|