Class Summary Translation2_Admin_Container_dataobjectsimple

Class Summary Translation2_Admin_Container_dataobjectsimple  -- Storage driver for storing/fetching data to/from a database

Storage driver for storing/fetching data to/from a database

Database Structure:

// meta data etc. not supported

table : translations id // not null primary key autoincrement.. string_id // translation id page // indexed varchar eg. (mytemplate.html) lang // index varchar (eg. en|fr|.....) translation // the translated value in language lang.

This storage driver can use all databases which are supported by the PEAR DB abstraction layer to fetch data.

Class Trees for Translation2_Admin_Container_dataobjectsimple

Translation2_Admin_Container_dataobjectsimple Inherited Methods

Таблица 30-1. Inherited from Translation2_Container_dataobjectsimple

Method NameSummary
Constructor Translation2_Container_dataobjectsimple::Translation2_Container_dataobjectsimple() Constructor of the container class
Translation2_Container_dataobjectsimple::fetchLangs() Fetch the available langs if they're not cached yet.
Translation2_Container_dataobjectsimple::getOne() Get a single item from the container, without caching the whole page
Translation2_Container_dataobjectsimple::getPage() Returns an array of the strings in the selected page
Translation2_Container_dataobjectsimple::getStringID() Get the stringID for the given string

Таблица 30-2. Inherited from Translation2_Container

Method NameSummary
Constructor Translation2_Container::Translation2_Container() Constructor
Translation2_Container::fetchLangs() Fetch the available langs if they're not cached yet.
Translation2_Container::getLang() Gets the current lang
Translation2_Container::getLangData() Gets the array data for the lang
Translation2_Container::getLangs() Gets the available languages
Translation2_Container::getOne() Get a single item from the container, without caching the whole page Containers should implement this method.
Translation2_Container::getPage() Returns an array of the strings in the selected page Containers should implement this method.
Translation2_Container::getStringID() Get the stringID for the given string
Translation2_Container::raiseError() Trigger a PEAR error
Translation2_Container::setLang() Sets the current lang


HIVE: All information for read only. Please respect copyright!
Hosted by hive ÊÃÁ: Êèåâñêàÿ ãîðîäñêàÿ áèáëèîòåêà