DefaultValueCreate
in package
Table of Contents
- TABLE_DEFAULTS = 'oo_plugin_fieldconfig_form_defaults'
- TABLE_DEFAULTS_VALUES = 'oo_plugin_fieldconfig_form_defaults_values'
- $_pRecordManagerFactory : RecordManagerFactory
- __construct() : mixed
- createForBool() : int
- createForMultiselect() : int
- createForNumericRange() : int
- createForSingleselect() : int
- createForText() : int
- createBase() : int
- createRecordManagerDefaults() : RecordManagerInsertGeneric
- createRecordManagerDefaultsValues() : RecordManagerInsertGeneric
- writeDatabaseGeneral() : int
- Step one: write oo_fieldconfig_form_defaults
- writeDatabaseValueSingle() : mixed
- step two: write to oo_fieldconfig_form_defaults_values
Constants
TABLE_DEFAULTS
public
mixed
TABLE_DEFAULTS
= 'oo_plugin_fieldconfig_form_defaults'
TABLE_DEFAULTS_VALUES
public
mixed
TABLE_DEFAULTS_VALUES
= 'oo_plugin_fieldconfig_form_defaults_values'
Properties
$_pRecordManagerFactory
private
RecordManagerFactory
$_pRecordManagerFactory
Methods
__construct()
public
__construct(RecordManagerFactory $pRecordManagerFactory) : mixed
Parameters
- $pRecordManagerFactory : RecordManagerFactory
Return values
mixed —createForBool()
public
createForBool(DefaultValueModelBool $pDataModel) : int
Parameters
- $pDataModel : DefaultValueModelBool
Tags
Return values
int —createForMultiselect()
public
createForMultiselect(DefaultValueModelMultiselect $pDataModel) : int
Parameters
- $pDataModel : DefaultValueModelMultiselect
Tags
Return values
int —createForNumericRange()
public
createForNumericRange(DefaultValueModelNumericRange $pDataModel) : int
Parameters
- $pDataModel : DefaultValueModelNumericRange
Tags
Return values
int —createForSingleselect()
public
createForSingleselect(DefaultValueModelSingleselect $pDataModel) : int
Parameters
- $pDataModel : DefaultValueModelSingleselect
Tags
Return values
int —createForText()
public
createForText(DefaultValueModelText $pDataModel) : int
Parameters
- $pDataModel : DefaultValueModelText
Tags
Return values
int —createBase()
private
createBase(DefaultValueModelBase $pDataModel) : int
Parameters
- $pDataModel : DefaultValueModelBase
Tags
Return values
int —createRecordManagerDefaults()
private
createRecordManagerDefaults() : RecordManagerInsertGeneric
Return values
RecordManagerInsertGeneric —createRecordManagerDefaultsValues()
private
createRecordManagerDefaultsValues() : RecordManagerInsertGeneric
Return values
RecordManagerInsertGeneric —writeDatabaseGeneral()
Step one: write oo_fieldconfig_form_defaults
private
writeDatabaseGeneral(int $formId, string $field) : int
Parameters
- $formId : int
- $field : string
Tags
Return values
int —writeDatabaseValueSingle()
step two: write to oo_fieldconfig_form_defaults_values
private
writeDatabaseValueSingle(int $defaultsId, string $value[, string $locale = '' ]) : mixed
Parameters
- $defaultsId : int
- $value : string
- $locale : string = ''