Class Actions

MyDatabase
  |
  +--Actions

public class Actions
extends MyDatabase

A class that handles adding, modifying and deleting the actions from the table.


Constructor Summary
Actions()
          Constructor of the class Actions.
 
Method Summary
 bool DeleteAction(var $actionId)
          Method to delete action from the table with a given key.
 bool ErrCheckActionsForm(var $FormElements, var $actionId)
          Method to check the form.
 array GetAction(var $key)
          Method to get the action information with a given key.
 array GetActionIdByName(var $name)
          Method to get the action information with a given name.
 string GetErrorMessage()
          Method to get the error message.
 string GetFormName()
          Method to get the form name.
 bool SetErrorMessage(var $message)
          Method to set the error message.
 bool UpdateAction(var $FormElements, var $actionId)
          Method to update actions table with a given key, fields and values.
 
Methods inherited from class MyDatabase
dbFailure, Field, InsertNew, Update
 

Constructor Detail

Actions

public Actions()
Constructor of the class Actions.
Method Detail

GetFormName

public string GetFormName()
Method to get the form name.

GetAction

public array GetAction(var $key)
Method to get the action information with a given key.

GetActionIdByName

public array GetActionIdByName(var $name)
Method to get the action information with a given name.

DeleteAction

public bool DeleteAction(var $actionId)
Method to delete action from the table with a given key.

UpdateAction

public bool UpdateAction(var $FormElements,
                         var $actionId)
Method to update actions table with a given key, fields and values.

SetErrorMessage

public bool SetErrorMessage(var $message)
Method to set the error message.

GetErrorMessage

public string GetErrorMessage()
Method to get the error message.

ErrCheckActionsForm

public bool ErrCheckActionsForm(var $FormElements,
                                var $actionId)
Method to check the form. Sets the error message and which field is wrong.