\simpleRecord

Base class for database records, without form managment nor load/store functions

Supplies table creation tools, but does not automatically aggregate dbRecord's basic fields (like uid, creation_date, etc.) The user is responsible for the full definition of his table.

Summary

Methods
Properties
Constants
getTableName()
importInitializationData()
createSQLTable()
importSQLDump()
getClassName()
$oneTablePerLocale
$createTableSQL
$createTableKeysSQL
$enableImportInitializationData
$enableHistory
$reloadFormOnSave
$baseTableSQL
$baseTableKeysSQL
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$tableName
N/A

Properties

$oneTablePerLocale

$oneTablePerLocale : 

Type

$createTableSQL

$createTableSQL : 

Type

$createTableKeysSQL

$createTableKeysSQL : 

Type

$enableImportInitializationData

$enableImportInitializationData : 

Type

$enableHistory

$enableHistory : 

Type

$reloadFormOnSave

$reloadFormOnSave : 

Type

$baseTableSQL

$baseTableSQL : 

Type

$baseTableKeysSQL

$baseTableKeysSQL : 

Type

$tableName

$tableName : 

Type

Methods

getTableName()

getTableName() 

importInitializationData()

importInitializationData(  $html = array()) 

Performs the SQL requests required to define basic data for the current table / record

Parameters

$html

createSQLTable()

createSQLTable(integer  $showSQL,   $html = array(), boolean  $importInitializationData = false) : integer

Creates the SQL table for this record in the database.

If you have set $oneTablePerLocale to true, the function will only create the table for the currently defined locale. If you want to create different tables for different locales, you will have to alter the locale value in $mf->info['data_editing_locale'] prior creating a table for the desired locale.

Parameters

integer $showSQL

generate HTML showing the result of the SQL request and feed the $html array passed by reference with it

$html
boolean $importInitializationData

Fill the table with initialization data after creation if this data is available

Returns

integer —

returns 1 if successful creation, 0 otherwise.

importSQLDump()

importSQLDump(  $filepath,   $showSQL,   $html = array()) 

Import a given SQL dump

Parameters

$filepath

absolute file path

$showSQL
$html

getClassName()

getClassName()