Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 16381 программист и 1662 робота. Сейчас ищут 1710 программистов ...
Translation2::factory
Вернуться к: Translation2
Translation2::factory
Translation2::factory() – Return an instanciated Translation2 object
Synopsis
require_once 'Translation2.php';
void Translation2::factory ( string $storageDriver , mixed $options = '' , array $params = array() )
This is the Translation2 factory
Parameter
- string $storageDriver
-
Type of the storage driver ('db', 'mdb', 'mdb2', 'gettext', 'dataobjectsimple')
- mixed $options
-
Additional options for the storage driver (example: if you are using DB as the storage driver, you have to pass the dsn string here)
- array $params
-
Array of parameters for the adapter class (i.e. you can set here the mappings between your table/field names and the ones used by this class)
Note
This function can not be called statically.
Вернуться к: Translation2