phpDocumentor

CategoryFormNameToStorageKeyMapper
in package

Class CategoryFormNameToStorageKeyMapper

Table of Contents

LANGUAGE_CODE_REGEX  = '#(title|description)\_(\w+)$#'
$keyToFormMap  : mixed
formNamesToDatabaseKeys()  : array<string|int, mixed>

Constants

Properties

$keyToFormMap

protected mixed $keyToFormMap = ['category_1_description' => 'label_cpc_category_01_desc', 'category_1_title' => 'label_cpc_category_01_text', 'category_2_description' => 'label_cpc_category_02_desc', 'category_2_title' => 'label_cpc_category_02_text', 'category_3_description' => 'label_cpc_category_03_desc', 'category_3_title' => 'label_cpc_category_03_text', 'category_4_description' => 'label_cpc_category_04_desc', 'category_4_title' => 'label_cpc_category_04_text', 'category_5_description' => 'label_cpc_category_05_desc', 'category_5_title' => 'label_cpc_category_05_text']

Methods

formNamesToDatabaseKeys()

public formNamesToDatabaseKeys(array<string|int, mixed> $formData) : array<string|int, mixed>
Parameters
$formData : array<string|int, mixed>
Tags
throws
InvalidArgumentException
Return values
array<string|int, mixed>

Search results