PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
require_once 'Translation2.php';
void Translation2::factory (string $storageDriver [, mixed $options = '' [, array $params = array()]])
void Translation2::factory
This is the Translation2 factory
Type of the storage driver ('db', 'mdb', 'mdb2', 'gettext', 'dataobjectsimple')
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 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)
This function can not be called statically.