onOffice WP Plugin

InputModelDBAdapterRow
in package

Tags
url

http://www.onoffice.de

copyright

2003-2017, onOffice(R) GmbH

Table of Contents

$_foreignKeys  : array<string|int, mixed>
array_keys($_foreignKeys[$table])[1] must always be the field that holds the foreign key to the main table
$_inputModels  : array<string|int, InputModelDB>
$_primaryKeys  : array<string|int, mixed>
addInputModelDB()  : mixed
createUpdateValuesByTable()  : array<string|int, mixed>
getForeignKeys()  : array<string|int, mixed>
getPrimaryKeys()  : array<string|int, mixed>
getMainForeignKeyColumnOfRelation()  : string
isForeignKey()  : bool
isPrimaryKey()  : bool

Properties

$_foreignKeys

array_keys($_foreignKeys[$table])[1] must always be the field that holds the foreign key to the main table

private array<string|int, mixed> $_foreignKeys = ['oo_plugin_fieldconfig' => ['fieldconfig_id' => null, 'listview_id' => ['oo_plugin_listviews', 'listview_id']], 'oo_plugin_address_fieldconfig' => ['address_fieldconfig_id' => null, 'listview_address_id' => ['oo_plugin_listviews_address', 'listview_address_id']], 'oo_plugin_picturetypes' => ['picturetype_id' => null, 'listview_id' => ['oo_plugin_listviews', 'listview_id']], 'oo_plugin_form_fieldconfig' => ['form_fieldconfig_id' => null, 'form_id' => ['oo_plugin_forms', 'form_id']], 'oo_plugin_sortbyuservalues' => ['sortbyvalue_id' => null, 'listview_id' => ['oo_plugin_listviews', 'listview_id']]]

$_primaryKeys

private array<string|int, mixed> $_primaryKeys = ['oo_plugin_listviews' => 'listview_id', 'oo_plugin_forms' => 'form_id']

Methods

createUpdateValuesByTable()

public createUpdateValuesByTable() : array<string|int, mixed>
Return values
array<string|int, mixed>

getForeignKeys()

public getForeignKeys() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPrimaryKeys()

public getPrimaryKeys() : array<string|int, mixed>
Return values
array<string|int, mixed>

getMainForeignKeyColumnOfRelation()

private getMainForeignKeyColumnOfRelation(string $relationTable) : string
Parameters
$relationTable : string
Return values
string

isForeignKey()

private isForeignKey(string $table, string $field) : bool
Parameters
$table : string
$field : string
Return values
bool

isPrimaryKey()

private isPrimaryKey(string $table, string $key) : bool
Parameters
$table : string
$key : string
Return values
bool

Search results