Translation: ezcTranslationContextRead
[ ]
[ Linguist format ]
[ ]
[ ]
[ ]
[ ]
Interface: ezcTranslationContextRead
|
Common interface for all context readers. [
source]
This interface specifies the methods that a backend should implement if it wants to act as a general purpose translation context reader. It extends on the built-in Iterator interface.
Parents
Iterator
|
--ezcTranslationContextRead
Method Summary
|
public void |
deinitReader(
)
Deinitializes the reader. |
|
public void |
initReader(
$locale )
Initializes the reader to read from the locale $locale. |
Methods
deinitReader
void deinitReader(
)
Deinitializes the reader.
This method should be called after the haveMore() method returns false to cleanup resources.
Throws
| Class | Description |
TranslationException |
when the reader is not initialized with initReader(). |
initReader
void initReader(
string
$locale )
Initializes the reader to read from the locale $locale.
Before starting to request context through the reader, you should call this method to initialize it.
Parameters
| Name |
Type |
Description |
$locale |
string |
|
Throws
| Class | Description |
TranslationException |
when the path of the translation and the fileformat of the translation are not set before this method is called. |
Last updated: Mon, 29 Jun 2009