Class CustomerGroupAjaxController

Class CustomerGroupAjaxController

HttpViewController implements HttpViewControllerInterface
AdminHttpViewController implements AdminStatusOnlyInterface
CustomerGroupAjaxController
Package: AdminHttpViewControllers
Category: System
Extends: AdminHttpViewController
Extends: AdminHttpViewController
Located at Controllers/HttpView/AdminAjax/CustomerGroupAjaxController.inc.php

Methods summary

public init( void )

Initialization of customer group controller

public actionStore( void ) : boolean

Creates an entity in the database.

public actionUpdate( void ) : boolean

Updates a customer entity in the database.

public actionDelete( void ) : boolean

Deletes a customer group entity in the database.

public actionGetNameById( void ) : boolean

Returns a customer group entity name and id by id.

public actionGetById( void ) : boolean

Returns all data from one customer group by id.

public actionGetData( void ) : boolean

Gets all customer group entity's from the database.

protected _storeCustomerGroup( CustomerGroupInterface $customerGroup ) : array

Tries to store a customer group entity.

protected _storeCustomerGroupConfigurations( CustomerGroupInterface $customerGroup, array $postData ) :

Stores posted customer group configurations to the customer group entity.

protected _storeCustomerGroupSettings( CustomerGroupInterface $customerGroup, array $postData ) :

Stores posted customer group settings to the customer group entity.

protected _storeCustomerGroupNames( CustomerGroupInterface $customerGroup, array $postData ) :

Stores all names by language id in the given post data.

protected _getDecimalType( $decimalString ) : DecimalType

Returns a decimal type from given decimal sting.

protected _getOrderOption( $orderString ) : DecimalType|null

Returns a decimal type, if the string is empty, it returns null.

protected _getStringArray( $stringValue ) : array

Returns an Array from String, if the string is empty, it returns an empty string.

protected _updateCustomerGroup( CustomerGroupInterface $customerGroup ) : array

Tries to update a customer group entity.

protected _getCustomerGroupById( string $type = 'get' ) : CustomerGroup

Returns a customer group entity by post data id.

protected _serializeCustomerGroup( CustomerGroupInterface $customerGroup ) : array

Serializes customer group entities.

protected _serializeCustomerGroupSettings( CustomerGroupSettingsInterface $settings ) : array

Serializes customer group settings value object.

protected _serializeCustomerGroupConfigurations( CustomerGroupConfigurationsInterface $configurations ) : array

Serializes customer group configurations value object.

protected _serializeCustomerGroupCollection( CustomerGroupCollection $customerGroupCollection ) : array

Serializes customer group collections.

protected _setAsDefault( CustomerGroupInterface $customerGroup, $postData ) :

Sets default value to customer group entity.

protected _prepareCustomerGroup( CustomerGroupInterface $customerGroup ) : CustomerGroupAjaxController

Prepares a customer group entity.

protected _createBaseForCustomerGroup( customerGroupInterface $customerGroup ) :

Creates a base personal offer table if base is not an admin.

Methods inherited from AdminHttpViewController

validateCurrentAdminStatus()

Methods inherited from HttpViewController

__construct(), _callActionMethod(), _getPostData(), _getPostDataCollection(), _getQueryParameter(), _getQueryParametersCollection(), _getServerData(), _render(), _validatePageToken(), actionDefault(), getTemplateFile(), proceed()

Properties summary

Properties inherited from HttpViewController

$assets, $contentView, $httpContextReader, $httpResponseProcessor, $postDataArray, $queryParametersArray, $serverDataArray