Class CTDBInterface
Interface for easy db access when data comes from Ajax.
Package: CT-ChurchCore
Located at system/churchcore/classes/CTDBInterface.class.php
Methods summary
public
|
#
setParam( unknown $name, string $mandatory = true )
add param $name to data array
add param $name to data array
Parameters
|
public
|
#
addModifiedParams( )
add params modified_date and modified_pid for modified fields
add params modified_date and modified_pid for modified fields
|
public
|
#
addCreateParams( )
add params create_date and create_pid for modified fields
add params create_date and create_pid for modified fields
|
public
|
#
addTypicalDateFields( )
add common parameters: startdate, enddate, repeat_...
add common parameters: startdate, enddate, repeat_...
|
public
multitype:unknown
|
#
getDBParamsArrayFromParams( a $params )
Build array for use as DB parameter from $params.
Test against $this->data for needed parameters.
Build array for use as DB parameter from $params.
Test against $this->data for needed parameters.
Parameters
Returns
multitype:unknown
Throws
|
public
array
|
#
getDBInsertArrayFromParams( array $params, string $setOptionalToNull = false )
Build array for use in DB funtions.
Test against $this->data for needed parameters
Build array for use in DB funtions.
Test against $this->data for needed parameters
Parameters
- $params
- $setOptionalToNull
- $setOptionalToNullValue
Returns
array with parameters
Throws
|
public
|
#
getLogText( unknown $params )
Render $params for log text
Render $params for log text
Parameters
|