CategoryAddonValueStorage

Extends \AbstractAddonValueStorage

Class CategoryAddonValueStorage

This class extends AbstractAddonValueStorage and handles the association of key-value pairs inside the CategoryAddonValueStorage to the columns and tables inside the database. All addon values except these you have registered in the Method '_getExternalFieldsArray' will be stored in the 'addon_values_storage' table associated with the AddonValueContainerId (category ID).

category

System

package

Category

subpackage

Storages

Methods

AbstractAddonValueStorage Constructor

__construct(\CI_DB_query_builder $db) 
inherited

Arguments

$db

\CI_DB_query_builder

Remove addon values by the given source id.

deleteValuesByContainerId(\IdType $containerId) : \AbstractAddonValueStorage
inherited

Arguments

$containerId

\IdType

Id of expected source.

Response

\AbstractAddonValueStorage

Returns the class instance.

Get the addon values by the given container ID.

getValuesByContainerId(\IdType $containerId) : \KeyValueCollection
inherited

Arguments

$containerId

\IdType

Container database ID.

Response

\KeyValueCollection

Sets addon values to the database.

setValues(\IdType $containerId, \KeyValueCollection $values) : \AbstractAddonValueStorage
inherited

Arguments

$containerId

\IdType

Container database ID.

$values

\KeyValueCollection

KeyValueCollection which should set.

Response

\AbstractAddonValueStorage

Returns the class instance.

Properties