allows you to register field for usage while INSERT/UPDATE/DELETE operation.
$action->add_field($name,$value);
Parameters:
See also:
marks provided data as invalid and cancels default UPDATE processing (invalid record will be highlighted in red bold font).
$action->error()
Parameters:
See Also:
returns hash of data values that will take part in INSERT/UPDATE/DELETE operations.
$action->get_data();
Parameters:
returns the id of the currently selected record.
$action->get_id();
Parameters:
returns the ID received after INSERT operation (valid for afterProcessing event only).
$action->get_new_id()
Parameters:
Returns:
returns action type of the item.
$action->get_status()
Returns:
Parameters:
See Also:
returns value of a field.
$action->get_value($name);
Parameters:
See Also:
marks provided data as invalid and cancels default UPDATE processing (invalid record will be highlighted in bold font).
$action->invalid()
Parameters:
See Also:
allows to remove one of default fields from INSERT/UPDATE/DELETE operation.
$action->remove_field($name,$value);
Parameters:
See Also:
sets a new ID for a record
$action->set_new_id($id)
Parameters:
allows you to define custom attribute which will be added to the related action tag in XML response.
$action->set_response_attribute($name,$value);
Parameters:
See Also:
allows you to set string that will be included in response
$action->set_response_text($text);
Parameters:
See Also:
allows you to set xml-string that will be included in response (if you need to provide just a text - use set_response_text() method).
$action->set_response_xml($text);
Parameters:
See Also:
sets the status of operation.
$action->set_status($value)
Parameters:
It can be either some predefined value (updated, inserted, deleted, error) or any custom status. Beware, when you set custom status you cancel default data processing.
See Also:
sets value of a field.
$action->set_value($name,$value)
Parameters:
See Also:
confirms that operation has been executed correctly and cancels any default data processing.
$action->success()
Parameters:
See also:
Back to top