phpDocumentor

CustomerGroupWriter implements CustomerGroupWriterInterface

Class CustomerGroupWriter

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

CustomerGroupWriterInterface
Interface CustomerGroupWriterInterface

Table of Contents

$languageProvider  : LanguageProvider
$queryBuilder  : CI_DB_query_builder
__construct()  : mixed
CustomerGroupWriter constructor.
createBase()  : CustomerGroupWriter
Create base data from chosen personal offers table.
store()  : $this|CustomerGroupWriterInterface
Saves customer group entity data in database.
update()  : $this|CustomerGroupWriterInterface
Updates customer group entity data in database.
_addGroupPermissionToCategories()  : $this
Add group permission id to categories table.
_addGroupPermissionToProducts()  : $this
Add group permission id to products table.
_columnNotExists()  : bool
Check if given column exists in given table.
_createGroupPermissionColumn()  : $this
Creates an group_permission by id column in given table.
_createPersonalOfferTable()  : $this
Creates an personal offer table with given id as suffix.
_dropPersonalOfferTableIfExists()  : $this
Drops personal offer table, if table with id exist.
_setDefault()  : CustomerGroupWriter
Updates the default customer group in the configuration data table.

Properties

Methods

_addGroupPermissionToCategories()

Add group permission id to categories table.

protected _addGroupPermissionToCategories( $customerGroupId) : $this
Parameters
$customerGroupId :
Return values
$this

_addGroupPermissionToProducts()

Add group permission id to products table.

protected _addGroupPermissionToProducts( $customerGroupId) : $this
Parameters
$customerGroupId :
Return values
$this

_columnNotExists()

Check if given column exists in given table.

protected _columnNotExists( $column,  $table) : bool
Parameters
$column :

string

$table :

string

Return values
bool

_createGroupPermissionColumn()

Creates an group_permission by id column in given table.

protected _createGroupPermissionColumn( $id,  $table) : $this
Parameters
$id :

int

$table :

string

Return values
$this

_createPersonalOfferTable()

Creates an personal offer table with given id as suffix.

protected _createPersonalOfferTable( $customerGroupId) : $this
Parameters
$customerGroupId :
Return values
$this

_dropPersonalOfferTableIfExists()

Drops personal offer table, if table with id exist.

protected _dropPersonalOfferTableIfExists( $customerGroupId) : $this
Parameters
$customerGroupId :
Return values
$this

Search results