PEAR Manual
Prev |  | Next

# Translation2::factory()

Translation2::factory() -- Return an instanciated Translation2 object

## Synopsis

    require_once 'Translation2.php';

``void Translation2::factory` (string $storageDriver [, mixed $options = '' [, array $params = array()]])`

## Description

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.

Prev | Home | Next
constructor Translation2::Translation2() | Up | Translation2::get()