CustomerGroupDeleter
in package
implements
CustomerGroupDeleterInterface
Class CustomerGroupDeleter
Tags
Interfaces, Classes and Traits
- CustomerGroupDeleterInterface
- Interface CustomerGroupDeleterInterface
Table of Contents
- $queryBuilder : CI_DB_query_builder
- __construct() : mixed
- delete() : $this|CustomerGroupDeleterInterface
- Deletes customer group entity data in database with personal offer table.
- _changeCustomersStatusIdToDefault() : $this
- Change customers status id.
- _deleteCustomersStatusTableRow() : $this
- Deletes customer status row by id.
- _dropGroupPermissionColumn() : $this
- Drops group permission column by id and given table name.
- _dropPersonalOffersTable() : $this
- Drops personal offers table by id.
Properties
$queryBuilder
protected
CI_DB_query_builder
$queryBuilder
Methods
__construct()
public
__construct(CI_DB_query_builder $queryBuilder) : mixed
Parameters
- $queryBuilder : CI_DB_query_builder
Return values
mixed —delete()
Deletes customer group entity data in database with personal offer table.
public
delete(CustomerGroup $customerGroup) : $this|CustomerGroupDeleterInterface
Parameters
- $customerGroup : CustomerGroup
-
Customer group entity to be delete.
Return values
$this|CustomerGroupDeleterInterface —Same instance for chained method calls.
_changeCustomersStatusIdToDefault()
Change customers status id.
protected
_changeCustomersStatusIdToDefault( $customerGroupId) : $this
Parameters
Return values
$this —_deleteCustomersStatusTableRow()
Deletes customer status row by id.
protected
_deleteCustomersStatusTableRow( $customerGroupId) : $this
Parameters
Return values
$this —_dropGroupPermissionColumn()
Drops group permission column by id and given table name.
protected
_dropGroupPermissionColumn( $customerGroupId, $table) : $this
Parameters
Return values
$this —_dropPersonalOffersTable()
Drops personal offers table by id.
protected
_dropPersonalOffersTable( $customerGroupId) : $this