Get translation strings from the POST array and prepare to insert or update into the table according to the specified fields
Parameters | |||
---|---|---|---|
array
|
$post |
The POST array |
# |
array
|
$fields |
The array of field name and input name mapping, e.g., array('fieldName' => 'inputName') |
# |
string
|
$lang = null |
The language code to fetch (if it is not provided, all languages will be fetched) |
# |
Returns | |
---|---|
array
|
The data array |