Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • CategoryAddonValueStorage

Class CategoryAddonValueStorage

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).

AbstractAddonValueStorage
Extended by CategoryAddonValueStorage
Package: Category\Storages
Category: System
Located at Services/Core/Category/Storages/CategoryAddonValueStorage.inc.php

Methods summary

protected string
# _getContainerType( )

Get the container class type.

Get the container class type.

Returns

string
protected array
# _getExternalFieldsArray( )

This method is for registering the addon values which are not stored inside the 'addon_values_storage' table.

This method is for registering the addon values which are not stored inside the 'addon_values_storage' table.

The returning array must be multidimensional and contains a set of database tables with corresponding primary keys and the fields which are not stored in the addon_values_storage table.

Example: $externalFields = array();

// Icon height and width. $externalFields['categories']['primary_key'] = 'categories_id'; $externalFields['categories']['fields'] = array( 'categories_icon_w' => 'iconWidth', 'categories_icon_h' => 'iconHeight' );

// Other categories related data $externalFields['table_name']['primary_key'] = 'categories_id'; $externalFields['table_name']['fields'] = array( 'column_name1' => 'addonValueKey1', 'column_name2' => 'addonValueKey2', );

return $externalFields;

Returns

array

Methods inherited from AbstractAddonValueStorage

__construct(), _getExternalValuesByContainerId(), _setExternalValues(), deleteValuesByContainerId(), getValuesByContainerId(), setValues()

Properties summary

Properties inherited from AbstractAddonValueStorage

$db, $externalFields

API documentation generated by ApiGen