Class: Translation2
Source Location: /Translation2-2.0.0RC1/Translation2.php
Translation2 base class
Author(s):
Copyright:
- 2004-2006 Lorenzo Alberton
|
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
Translation2 (Constructor) [line 125]
Translation2 Translation2(
)
|
|
Constructor
factory [line 150]
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 485]
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 329]
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 364]
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 526]
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_CacheLiteFunction::getPage()
- Same as getRawPage, but resort to fallback language and replace parameters when needed
- Translation2_Decorator_CacheMemory::getPage()
- Same as getRawPage, but resort to fallback language and replace parameters when needed
- Translation2_Decorator_DefaultText::getPage()
- Replace empty strings with their $stringID
- Translation2_Decorator_ErrorText::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_Lang::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_UTF8::getPage()
- Same as getRawPage, but resort to fallback language and replace parameters when needed
Parameters:
getRaw [line 457]
getRawPage [line 507]
getStringID [line 544]
replaceEmptyStringsWithKeys [line 432]
setCharset [line 273]
void 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 198]
setLang [line 291]
setPageID [line 311]
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 380]
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 399]
__clone [line 560]
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 Sun, 29 Jul 2007 12:00:34 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|
|