![]() |
Xataface Translation Memory Module 0.1
Translation Memory for Xataface Applications
|
Handler for the tm_save_field
action which provides a REST API to save a translated field's contents.
More...
Public Member Functions | |
handle ($params) | |
out ($params) |
Handler for the tm_save_field
action which provides a REST API to save a translated field's contents.
Name | Description |
---|---|
--lang | The 2-digit language code to save the field in. |
--record_id | The Xataface record id of the record to save. |
--field | The name of the field to save. |
--newval | The value to save in the field. |
This action will return mimetype text/json with a JSON object of the following structure:
{ code: <int>, // The response code. 200 for success. message: <string>, // The response message. Error or success. fieldContent: <string>, // The saved field content. (Only returned on success) error: <boolean> // Will contain 1 if there was an error. }
This action requires that the user has the edit
permission granted for the given field.
Definition at line 56 of file tm_save_field.php.
handle | ( | $ | params | ) |
Definition at line 58 of file tm_save_field.php.
out | ( | $ | params | ) |
Definition at line 133 of file tm_save_field.php.