CustomLabelRead
in package
Reads default values as defined in WP, not onOffice enterprise
Table of Contents
- $_pWPDB : wpdb
- __construct() : mixed
- readCustomLabelByFormIdAndFieldName() : array<string|int, mixed>
- readCustomLabelsField() : CustomLabelModelField
- createBaseQuery() : string
- createCustomsLabelsByFormIdQuery() : string
Properties
$_pWPDB
private
wpdb
$_pWPDB
Methods
__construct()
public
__construct(wpdb $pWPDB) : mixed
Parameters
- $pWPDB : wpdb
Return values
mixed —readCustomLabelByFormIdAndFieldName()
public
readCustomLabelByFormIdAndFieldName(int $formId, $field, $current_lang) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —readCustomLabelsField()
public
readCustomLabelsField(int $formId, Field $pField) : CustomLabelModelField
Parameters
- $formId : int
- $pField : Field
Return values
CustomLabelModelField —createBaseQuery()
private
createBaseQuery(int $formId, Field $pField) : string
Parameters
- $formId : int
- $pField : Field
Return values
string —createCustomsLabelsByFormIdQuery()
private
createCustomsLabelsByFormIdQuery(int $formId, string $field, $current_lang) : string