\Ulaform_Action_Sql

Ulaform_Action_Sql Class provides a Ulaform action driver to submit the results of a form to database.

Copyright 2004-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
__construct()
getDrivers()
doAction()
getInfo()
getParams()
No public properties found
No constants found
_createDataTable()
$_params
$_db
$_charset
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : array

A hash containing any parameters for the current action driver.

Type

array

$_db

$_db : \Horde_Db_Adapter

The database connection object.

Type

\Horde_Db_Adapter

$_charset

$_charset : string

Charset

Type

string

Methods

__construct()

__construct(array  $params = array()) 

Construct a new SQL storage object.

Parameters

array $params

The connection parameters

Throws

\InvalidArguementException

getDrivers()

getDrivers() : array

Returns a list of available action drivers.

Returns

array —

An array of available drivers.

doAction()

doAction(  $form_params,   $form_data,   $fields) : boolean

Actually carry out the action.

Parameters

$form_params
$form_data
$fields

Throws

\Ulaform_Exception

Returns

boolean —

True on success.

getInfo()

getInfo() : array

Identifies this action driver and returns a brief description, used by admin when configuring an action for a form and set up using Horde_Form.

Returns

array —

Array of required parameters.

getParams()

getParams() : array

Returns the required parameters for this action driver, used by admin when configuring an action for a form and set up using Horde_Form.

Returns

array —

Array of required parameters.

_createDataTable()

_createDataTable(  $form_params,   $fields) : boolean

Create table for submiting data.

Parameters

$form_params
$fields

Throws

\Ulaform_Exception

Returns

boolean —

True on success.