Xataface Translation Memory Module 0.1
Translation Memory for Xataface Applications
Public Member Functions
actions_tm_save_field Class Reference

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)

Detailed Description

Handler for the tm_save_field action which provides a REST API to save a translated field's contents.

Request Parameters

NameDescription
--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.

Response Structure

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.
 }

Permissions

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.


Member Function Documentation

handle ( params)

Definition at line 58 of file tm_save_field.php.

out ( params)

Definition at line 133 of file tm_save_field.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables