Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminAccess
    • Collections
    • Deleters
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Managers
    • Readers
    • Writers
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • CustomerGroup
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Serializers
    • Services
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Geschaeftskundenversand
    • Helpers
    • Invoices
    • Orders
    • ParcelShopFinder
    • QuickEdit
    • Serializers
    • Templates
  • Geschaeftskundenversand
    • Exceptions
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Manufacturer
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • OrderStatus
    • Collections
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Repositories
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • QuantityUnit
    • Entities
    • Factories
    • Repositories
  • QuickEdit
    • Interfaces
    • Repositories
  • Review
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Smarty
    • plugins
  • StaticSeoUrl
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • StaticSeoUrls
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects
  • VPE
    • Entities
    • Factories
    • Repositories
  • Withdrawal
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects

Classes

  • CustomerGroupAccessRepository
  • CustomerGroupDeleter
  • CustomerGroupReader
  • CustomerGroupRepository
  • CustomerGroupWriter

Interfaces

  • CustomerGroupAccessRepositoryInterface
  • CustomerGroupDeleterInterface
  • CustomerGroupReaderInterface
  • CustomerGroupRepositoryInterface
  • CustomerGroupWriterInterface

Class CustomerGroupWriter

Class CustomerGroupWriter

CustomerGroupWriter implements CustomerGroupWriterInterface
Package: CustomerGroup\Repositories
Category: System
Located at Services/Core/CustomerGroup/Repositories/CustomerGroupWriter.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $queryBuilder, LanguageProvider $languageProvider )

CustomerGroupWriter constructor.

CustomerGroupWriter constructor.

Parameters

$queryBuilder
$languageProvider
public
# store( CustomerGroupInterface $customerGroup )

Saves customer group entity data in database.

Saves customer group entity data in database.

Parameters

$customerGroup
Customer group to be saved.

Returns


$this|\CustomerGroupWriterInterface Same instance for chained method calls.

Implementation of

CustomerGroupWriterInterface::store()
public
# update( CustomerGroupInterface $customerGroup )

Updates customer group entity data in database.

Updates customer group entity data in database.

Parameters

$customerGroup
Customer group to be updated.

Returns


$this|\CustomerGroupWriterInterface Same instance for chained method calls.

Implementation of

CustomerGroupWriterInterface::update()
public CustomerGroupWriter
# createBase( IntType $customerGroupId, IntType $baseId )

Create base data from chosen personal offers table.

Create base data from chosen personal offers table.

Parameters

$customerGroupId
$baseId

Returns

CustomerGroupWriter

Implementation of

CustomerGroupWriterInterface::createBase()
protected CustomerGroupWriter
# _setDefault( CustomerGroupInterface $customerGroup, $customerGroupId )

Updates the default customer group in the configuration data table.

Updates the default customer group in the configuration data table.

Parameters

$customerGroup
$customerGroupId

Returns

CustomerGroupWriter
protected
# _createPersonalOfferTable( $customerGroupId )

Creates an personal offer table with given id as suffix.

Creates an personal offer table with given id as suffix.

Parameters

$customerGroupId

Returns


$this
protected
# _dropPersonalOfferTableIfExists( $customerGroupId )

Drops personal offer table, if table with id exist.

Drops personal offer table, if table with id exist.

Parameters

$customerGroupId

Returns


$this
protected
# _addGroupPermissionToProducts( $customerGroupId )

Add group permission id to products table.

Add group permission id to products table.

Parameters

$customerGroupId

Returns


$this
protected
# _addGroupPermissionToCategories( $customerGroupId )

Add group permission id to categories table.

Add group permission id to categories table.

Parameters

$customerGroupId

Returns


$this
protected boolean
# _columnNotExists( $column, $table )

Check if given column exists in given table.

Check if given column exists in given table.

Parameters

$column
string
$table
string

Returns

boolean
protected
# _createGroupPermissionColumn( $id, $table )

Creates an group_permission by id column in given table.

Creates an group_permission by id column in given table.

Parameters

$id
int
$table
string

Returns


$this

Properties summary

protected CI_DB_query_builder $queryBuilder
#
protected LanguageProvider $languageProvider
#
API documentation generated by ApiGen