RecordManagerReadForm
extends RecordManagerRead
in package
Tags
Table of Contents
- TABLENAME_FIELDCONFIG = 'oo_plugin_fieldconfig'
- TABLENAME_FIELDCONFIG_ADDRESS = 'oo_plugin_address_fieldconfig'
- TABLENAME_FIELDCONFIG_FORM_CUSTOMS_LABELS = 'oo_plugin_fieldconfig_form_customs_labels'
- TABLENAME_FIELDCONFIG_FORM_DEFAULTS = 'oo_plugin_fieldconfig_form_defaults'
- TABLENAME_FIELDCONFIG_FORM_DEFAULTS_VALUES = 'oo_plugin_fieldconfig_form_defaults_values'
- TABLENAME_FIELDCONFIG_FORM_TRANSLATED_LABELS = 'oo_plugin_fieldconfig_form_translated_labels'
- TABLENAME_FIELDCONFIG_FORMS = 'oo_plugin_form_fieldconfig'
- TABLENAME_FORMS = 'oo_plugin_forms'
- TABLENAME_LIST_VIEW = 'oo_plugin_listviews'
- TABLENAME_LIST_VIEW_ADDRESS = 'oo_plugin_listviews_address'
- TABLENAME_LISTVIEW_CONTACTPERSON = 'oo_plugin_listview_contactperson'
- TABLENAME_PICTURETYPES = 'oo_plugin_picturetypes'
- TABLENAME_SORTBYUSERVALUES = 'oo_plugin_sortbyuservalues'
- $_columns : array<string|int, string>
- $_foundRows : array<string|int, object>
- $_idColumnMain : string
- $_joins : array<string|int, string>
- $_limit : int
- $_mainTable : string
- $_offset : int
- $_rowsCountOverall : int
- $_where : array<string|int, string>
- __construct() : mixed
- addColumn() : mixed
- addColumnConst() : mixed
- addJoin() : mixed
- addWhere() : mixed
- getAllRecords() : object
- getColumns() : string
- getCountByType() : array<string|int, mixed>
- getCountDefaultRecipientRecord() : mixed
- getCountOverall() : int
- getIdColumnMain() : string
- getJoins() : string
- getLimit() : int
- getMainTable() : string
- getNameByFormId() : object
- getOffset() : int
- getRecords() : array<string|int, object>
- getRecordsSortedAlphabetically() : array<string|int, object>
- getRowById() : array<string|int, mixed>
- getRowByName() : array<string|int, mixed>
- getTablePrefix() : string
- getWhere() : array<string|int, string>
- getWpdb() : wpdb
- postProcessValue() : string
- readFieldconfigByFormId() : array<string|int, mixed>
- readFieldsByFormId() : array<string|int, mixed>
- setLimit() : mixed
- setOffset() : mixed
- getFoundRows() : array<string|int, mixed>
- setCountOverall() : mixed
- setFoundRows() : mixed
- setIdColumnMain() : mixed
- setMainTable() : mixed
Constants
TABLENAME_FIELDCONFIG
public
mixed
TABLENAME_FIELDCONFIG
= 'oo_plugin_fieldconfig'
TABLENAME_FIELDCONFIG_ADDRESS
public
mixed
TABLENAME_FIELDCONFIG_ADDRESS
= 'oo_plugin_address_fieldconfig'
TABLENAME_FIELDCONFIG_FORM_CUSTOMS_LABELS
public
mixed
TABLENAME_FIELDCONFIG_FORM_CUSTOMS_LABELS
= 'oo_plugin_fieldconfig_form_customs_labels'
TABLENAME_FIELDCONFIG_FORM_DEFAULTS
public
mixed
TABLENAME_FIELDCONFIG_FORM_DEFAULTS
= 'oo_plugin_fieldconfig_form_defaults'
TABLENAME_FIELDCONFIG_FORM_DEFAULTS_VALUES
public
mixed
TABLENAME_FIELDCONFIG_FORM_DEFAULTS_VALUES
= 'oo_plugin_fieldconfig_form_defaults_values'
TABLENAME_FIELDCONFIG_FORM_TRANSLATED_LABELS
public
mixed
TABLENAME_FIELDCONFIG_FORM_TRANSLATED_LABELS
= 'oo_plugin_fieldconfig_form_translated_labels'
TABLENAME_FIELDCONFIG_FORMS
public
mixed
TABLENAME_FIELDCONFIG_FORMS
= 'oo_plugin_form_fieldconfig'
TABLENAME_FORMS
public
mixed
TABLENAME_FORMS
= 'oo_plugin_forms'
TABLENAME_LIST_VIEW
public
mixed
TABLENAME_LIST_VIEW
= 'oo_plugin_listviews'
TABLENAME_LIST_VIEW_ADDRESS
public
mixed
TABLENAME_LIST_VIEW_ADDRESS
= 'oo_plugin_listviews_address'
TABLENAME_LISTVIEW_CONTACTPERSON
public
mixed
TABLENAME_LISTVIEW_CONTACTPERSON
= 'oo_plugin_listview_contactperson'
TABLENAME_PICTURETYPES
public
mixed
TABLENAME_PICTURETYPES
= 'oo_plugin_picturetypes'
TABLENAME_SORTBYUSERVALUES
public
mixed
TABLENAME_SORTBYUSERVALUES
= 'oo_plugin_sortbyuservalues'
Properties
$_columns
private
array<string|int, string>
$_columns
= []
$_foundRows
private
array<string|int, object>
$_foundRows
= []
$_idColumnMain
private
string
$_idColumnMain
= ''
$_joins
private
array<string|int, string>
$_joins
= []
$_limit
private
int
$_limit
= 10
$_mainTable
private
string
$_mainTable
= ''
$_offset
private
int
$_offset
= 0
$_rowsCountOverall
private
int
$_rowsCountOverall
= 0
$_where
private
array<string|int, string>
$_where
= [1]
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addColumn()
public
addColumn(string $column[, string $alias = null ]) : mixed
Parameters
- $column : string
- $alias : string = null
Return values
mixed —addColumnConst()
public
addColumnConst(string $column, string $alias) : mixed
Parameters
- $column : string
- $alias : string
Return values
mixed —addJoin()
public
addJoin(string $fullJoinStatement) : mixed
Parameters
- $fullJoinStatement : string
Return values
mixed —addWhere()
public
addWhere(string $where) : mixed
Parameters
- $where : string
Return values
mixed —getAllRecords()
public
getAllRecords() : object
Tags
Return values
object —getColumns()
public
getColumns() : string
Return values
string —[]
getCountByType()
public
getCountByType() : array<string|int, mixed>
Return values
array<string|int, mixed> —getCountDefaultRecipientRecord()
public
getCountDefaultRecipientRecord() : mixed
Return values
mixed —getCountOverall()
public
getCountOverall() : int
Return values
int —getIdColumnMain()
public
getIdColumnMain() : string
Return values
string —getJoins()
public
getJoins() : string
Return values
string —[]
getLimit()
public
getLimit() : int
Return values
int —getMainTable()
public
getMainTable() : string
Return values
string —getNameByFormId()
public
getNameByFormId(int $formId) : object
Parameters
- $formId : int
Return values
object —getOffset()
public
getOffset() : int
Return values
int —getRecords()
public
getRecords() : array<string|int, object>
Return values
array<string|int, object> —getRecordsSortedAlphabetically()
public
getRecordsSortedAlphabetically() : array<string|int, object>
Return values
array<string|int, object> —getRowById()
public
getRowById(int $recordId) : array<string|int, mixed>
Parameters
- $recordId : int
Return values
array<string|int, mixed> —getRowByName()
public
getRowByName(string $formName) : array<string|int, mixed>
Parameters
- $formName : string
Tags
Return values
array<string|int, mixed> —getTablePrefix()
public
getTablePrefix() : string
Tags
Return values
string —getWhere()
public
getWhere() : array<string|int, string>
Return values
array<string|int, string> —getWpdb()
public
getWpdb() : wpdb
Tags
Return values
wpdb —postProcessValue()
public
static postProcessValue(string $value, string $table, string $field) : string
Parameters
- $value : string
- $table : string
- $field : string
Return values
string —readFieldconfigByFormId()
public
readFieldconfigByFormId(int $formId) : array<string|int, mixed>
Parameters
- $formId : int
Return values
array<string|int, mixed> —readFieldsByFormId()
public
readFieldsByFormId(int $formId) : array<string|int, mixed>
Parameters
- $formId : int
Return values
array<string|int, mixed> —setLimit()
public
setLimit(int $limit) : mixed
Parameters
- $limit : int
Return values
mixed —setOffset()
public
setOffset(int $offset) : mixed
Parameters
- $offset : int
Return values
mixed —getFoundRows()
protected
getFoundRows() : array<string|int, mixed>
Return values
array<string|int, mixed> —setCountOverall()
protected
setCountOverall(int $countOverall) : mixed
Parameters
- $countOverall : int
Return values
mixed —setFoundRows()
protected
setFoundRows(array<string|int, mixed> $foundRows) : mixed
Parameters
- $foundRows : array<string|int, mixed>
Return values
mixed —setIdColumnMain()
protected
setIdColumnMain(string $idColumnMain) : mixed
Parameters
- $idColumnMain : string
Return values
mixed —setMainTable()
protected
setMainTable(string $mainTable) : mixed
Parameters
- $mainTable : string