Xataface 2.0
Xataface Application Framework
Public Member Functions
dataface_actions_ajax_insert Class Reference

An AJAX action that inserts a new record into the database. More...

Public Member Functions

 handle ($params)
 out ($params)

Detailed Description

An AJAX action that inserts a new record into the database.

POST Parameters

Parameters:
String--record_id The record ID of the record to save.
Other Parameters

The values that you want to save should be passed directly as POST variables with the column names as the key and the value to save as the value.

Returns:
JSON data structure with:
 {
                code: <int>,   // The status code.  200 for success.
                message: <string>,  // The status message
                recordId: <string>, // The record id of the record after save.  Only on success.
 }

Definition at line 25 of file ajax_insert.php.


Member Function Documentation

handle ( params)

Definition at line 27 of file ajax_insert.php.

out ( params)

Definition at line 73 of file ajax_insert.php.


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