CustomLabelCreate
in package
Table of Contents
- TABLE_CUSTOMS_LABELS = 'oo_plugin_fieldconfig_form_customs_labels'
- TABLE_TRANSLATED_LABELS = 'oo_plugin_fieldconfig_form_translated_labels'
- $_pRecordManagerFactory : RecordManagerFactory
- __construct() : mixed
- createForField() : int
- createRecordManagerCustomsLabels() : RecordManagerInsertGeneric
- createRecordManagerDefaults() : RecordManagerInsertGeneric
- writeDatabaseGeneral() : int
- Step one: write oo_fieldconfig_form_customs_labels
- writeDatabaseValueSingle() : mixed
- step two: write to oo_fieldconfig_form_translated_labels
Constants
TABLE_CUSTOMS_LABELS
public
mixed
TABLE_CUSTOMS_LABELS
= 'oo_plugin_fieldconfig_form_customs_labels'
TABLE_TRANSLATED_LABELS
public
mixed
TABLE_TRANSLATED_LABELS
= 'oo_plugin_fieldconfig_form_translated_labels'
Properties
$_pRecordManagerFactory
private
RecordManagerFactory
$_pRecordManagerFactory
Methods
__construct()
public
__construct(RecordManagerFactory $pRecordManagerFactory) : mixed
Parameters
- $pRecordManagerFactory : RecordManagerFactory
Return values
mixed —createForField()
public
createForField(CustomLabelModelField $pDataModel) : int
Parameters
- $pDataModel : CustomLabelModelField
Tags
Return values
int —createRecordManagerCustomsLabels()
private
createRecordManagerCustomsLabels() : RecordManagerInsertGeneric
Return values
RecordManagerInsertGeneric —createRecordManagerDefaults()
private
createRecordManagerDefaults() : RecordManagerInsertGeneric
Return values
RecordManagerInsertGeneric —writeDatabaseGeneral()
Step one: write oo_fieldconfig_form_customs_labels
private
writeDatabaseGeneral(int $formId, string $field) : int
Parameters
- $formId : int
- $field : string
Tags
Return values
int —writeDatabaseValueSingle()
step two: write to oo_fieldconfig_form_translated_labels
private
writeDatabaseValueSingle(int $customsLabelsId, string $value[, string $locale = '' ]) : mixed
Parameters
- $customsLabelsId : int
- $value : string
- $locale : string = ''