Class AbstractApiV2Controller
Class AbstractApiV2Controller
This class defines the inner core functionality of a ApiV2Controller. It contains the initialization and request validation functionality that every controller must have.
The functionality of this class is mark as private because child controllers must not alter the state at this point but rather adjust to it. This will force them to follow the same principles and methodologies.
Child API controllers can use the "init" method to initialize their common dependencies.
Direct known subclasses
Indirect known subclasses
AbstractImagesApiV2Controller
,
AddressesApiV2Controller
,
OrdersApiV2Controller
,
OrdersHistoryApiV2Controller
,
OrdersItemsApiV2Controller
,
OrdersItemsAttributesApiV2Controller
,
OrdersTotalsApiV2Controller
,
ProductImagesApiV2Controller
,
ProductsApiV2Controller
,
ProductsLinksApiV2Controller
,
ZonesApiV2Controller
,
AttachmentsApiV2Controller
,
CategoriesApiV2Controller
,
CategoryIconsApiV2Controller
,
CategoryImagesApiV2Controller
,
CountriesApiV2Controller
,
CustomersApiV2Controller
,
DefaultApiV2Controller
,
EmailsApiV2Controller
Package: ApiV2Controllers
Category: System
Located at Controllers/Api/AbstractApiV2Controller.inc.php
Methods summary
public
|
Constants summary
integer |
DEFAULT_PAGE_ITEMS
Defines the default page offset for responses that return multiple items. |
#
50
|
string |
DEFAULT_CONTROLLER_NAME
Default controller to be loaded when no resource was selected. |
#
'DefaultApiV2Controller'
|
integer |
DEFAULT_RATE_LIMIT
Defines the maximum request limit for an authorized client. |
#
5000
|
integer |
DEFAULT_RATE_RESET_PERIOD
Defines the duration of an API session in minutes. |
#
15
|