ApiController
extends Controller
in package
Class ApiController
Table of Contents
Constants
- AFTER_UPDATE_FIELD_NOT_SUCCESS = ["client_active" => "clientActiveUpdateNotSuccess"]
- TRIGGER_ACTION = ["dr_enabled" => "syncDrClientIfEnabled", "client_active" => "handleAfterClientActiveModification"]
- UPDATE_FIELD_METHOD_MAP = ["client" => "setClientTextId", "client_access_blocked" => "setClientAccessBlocked", "new_seller_plan_switcher" => "setNewSellerPlanSwitcher", "account_access_blocked" => "setAccountAccessBlocked", "client_active" => "setClientActive", "country_id" => "setWarehouseCountryId", "company_country_id" => "setCompanyCountryId", "first_name" => "setFirstName", "last_name" => "setLastName", "email" => "setEmail", "notification_email" => "setNotificationEmail", "active" => "setActive", "language" => "setLanguage", "dr_enabled" => "setDrEnabled"]
- VALIDATION_ACTION = ["client_active" => "clientActiveCanBeDeactivated"]
Properties
Methods
- initialize() : mixed
- updateFieldAction() : Response
- updateTextIdAction() : mixed
Constants
AFTER_UPDATE_FIELD_NOT_SUCCESS
public
mixed
AFTER_UPDATE_FIELD_NOT_SUCCESS
= ["client_active" => "clientActiveUpdateNotSuccess"]
TRIGGER_ACTION
public
mixed
TRIGGER_ACTION
= ["dr_enabled" => "syncDrClientIfEnabled", "client_active" => "handleAfterClientActiveModification"]
UPDATE_FIELD_METHOD_MAP
public
mixed
UPDATE_FIELD_METHOD_MAP
= ["client" => "setClientTextId", "client_access_blocked" => "setClientAccessBlocked", "new_seller_plan_switcher" => "setNewSellerPlanSwitcher", "account_access_blocked" => "setAccountAccessBlocked", "client_active" => "setClientActive", "country_id" => "setWarehouseCountryId", "company_country_id" => "setCompanyCountryId", "first_name" => "setFirstName", "last_name" => "setLastName", "email" => "setEmail", "notification_email" => "setNotificationEmail", "active" => "setActive", "language" => "setLanguage", "dr_enabled" => "setDrEnabled"]
VALIDATION_ACTION
public
mixed
VALIDATION_ACTION
= ["client_active" => "clientActiveCanBeDeactivated"]
Properties
$acl read-only
public
Acl
$acl
$trans read-only
public
Translator
$trans
$userService read-only
public
UserService
$userService
Methods
initialize()
public
initialize() : mixed
updateFieldAction()
public
updateFieldAction(mixed $id, mixed $field, mixed $value) : Response
Parameters
- $id : mixed
- $field : mixed
- $value : mixed
Tags
Return values
ResponseupdateTextIdAction()
public
updateTextIdAction(mixed $id) : mixed
Parameters
- $id : mixed