DataMapper ORM


Translation Methods (translate)

To enable these methods, add 'translate' to DataMapper's config, under 'extensions'.

Runs (a selected list of) object properties through CodeIgniters language method so you can store language keys in the database.

translate($fields)

Usage

$u = new User();
$u->get_by_id($user_id);
$u->translate();