|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (Request $request, ManagerInterface $eventManager, UrlInterface $urlBuilder, TranslateInterface $translator, Cache $cache, DesignInterface $design, SessionManager $session, ScopeConfigInterface $scopeConfig, FrontControllerInterface $frontController, ViewConfig $viewConfig, CacheState $cacheState, Logger $logger, AppState $appState, LayoutInterface $layout) | |
| getCache () | |
| getDesignPackage () | |
| getEventManager () | |
| getFrontController () | |
| getLayout () | |
| getRequest () | |
| getSession () | |
| getScopeConfig () | |
| getTranslator () | |
| getUrlBuilder () | |
| getViewConfig () | |
| getCacheState () | |
| getLogger () | |
| getArea () | |
| getModuleName () | |
| getFrontName () | |
| getControllerName () | |
| getActionName () | |
| getFullActionName () | |
| getAcceptType () | |
| getPost ($key=null, $default=null) | |
| getQuery ($key=null, $default=null) | |
| getParam ($key=null, $default=null) | |
| getParams () | |
| getHeader ($header) | |
| getContent () | |
| getAppState () | |
Protected Member Functions | |
| getPhysicalTheme (Design\ThemeInterface $theme) | |
Protected Attributes | |
| $request | |
| $eventManager | |
| $urlBuilder | |
| $translator | |
| $cache | |
| $design | |
| $session | |
| $scopeConfig | |
| $frontController | |
| $layout | |
| $viewConfig | |
| $cacheState | |
| $logger | |
| $appState | |
Application Runtime Context
Reduce fields number
Reduce class dependencies
@SuppressWarnings(PHPMD.TooManyFields) @SuppressWarnings(PHPMD.CouplingBetweenObjects) @api
Definition at line 32 of file Context.php.
| __construct | ( | Request | $request, |
| ManagerInterface | $eventManager, | ||
| UrlInterface | $urlBuilder, | ||
| TranslateInterface | $translator, | ||
| Cache | $cache, | ||
| DesignInterface | $design, | ||
| SessionManager | $session, | ||
| ScopeConfigInterface | $scopeConfig, | ||
| FrontControllerInterface | $frontController, | ||
| ViewConfig | $viewConfig, | ||
| CacheState | $cacheState, | ||
| Logger | $logger, | ||
| AppState | $appState, | ||
| LayoutInterface | $layout | ||
| ) |
Constructor
| Request | $request | |
| ManagerInterface | $eventManager | |
| UrlInterface | $urlBuilder | |
| TranslateInterface | $translator | |
| Cache | $cache | |
| DesignInterface | $design | |
| SessionManager | $session | |
| ScopeConfigInterface | $scopeConfig | |
| FrontControllerInterface | $frontController | |
| ViewConfig | $viewConfig | |
| CacheState | $cacheState | |
| Logger | $logger | |
| AppState | $appState | |
| LayoutInterface | $layout |
@SuppressWarnings(PHPMD.ExcessiveParameterList)
Definition at line 153 of file Context.php.
| getAcceptType | ( | ) |
| getActionName | ( | ) |
| getAppState | ( | ) |
Retrieve application state
Definition at line 465 of file Context.php.
| getArea | ( | ) |
| getCache | ( | ) |
Retrieve cache
Definition at line 190 of file Context.php.
| getCacheState | ( | ) |
Retrieve cache state
Definition at line 300 of file Context.php.
| getContent | ( | ) |
Return the raw body of the request, if present
Definition at line 455 of file Context.php.
| getControllerName | ( | ) |
| getDesignPackage | ( | ) |
Retrieve design package
Definition at line 200 of file Context.php.
| getEventManager | ( | ) |
| getFrontController | ( | ) |
Retrieve front controller
Definition at line 220 of file Context.php.
| getFrontName | ( | ) |
| getFullActionName | ( | ) |
Retrieve the full action name
Definition at line 368 of file Context.php.
| getHeader | ( | $header | ) |
Return the value of the given HTTP header.
| string | $header |
Definition at line 445 of file Context.php.
| getLayout | ( | ) |
Retrieve layout
Definition at line 230 of file Context.php.
| getLogger | ( | ) |
| getModuleName | ( | ) |
| getParam | ( | $key = null, |
|
$default = null |
|||
| ) |
Retrieve a parameter
| string | null | $key | |
| mixed | $default | Default value to use if key not found |
Definition at line 424 of file Context.php.
| getParams | ( | ) |
|
protected |
Retrieve parent theme instance
| Design\ThemeInterface | $theme |
Definition at line 477 of file Context.php.
| getPost | ( | $key = null, |
|
$default = null |
|||
| ) |
Retrieve a member of the $_POST superglobal
| string | $key | |
| mixed | $default | Default value to use if key not found |
Definition at line 400 of file Context.php.
| getQuery | ( | $key = null, |
|
$default = null |
|||
| ) |
Retrieve a member of the $_POST superglobal
| string | null | $key | |
| mixed | $default | Default value to use if key not found |
Definition at line 412 of file Context.php.
| getRequest | ( | ) |
| getScopeConfig | ( | ) |
Retrieve scope config
Definition at line 260 of file Context.php.
| getSession | ( | ) |
Retrieve session
Definition at line 250 of file Context.php.
| getTranslator | ( | ) |
Retrieve translator
Definition at line 270 of file Context.php.
| getUrlBuilder | ( | ) |
Retrieve URL builder
Definition at line 280 of file Context.php.
| getViewConfig | ( | ) |
Retrieve view config
Definition at line 290 of file Context.php.
|
protected |
Definition at line 129 of file Context.php.
|
protected |
Definition at line 66 of file Context.php.
|
protected |
Definition at line 115 of file Context.php.
|
protected |
Definition at line 73 of file Context.php.
|
protected |
Definition at line 46 of file Context.php.
|
protected |
Definition at line 94 of file Context.php.
|
protected |
Definition at line 101 of file Context.php.
|
protected |
Definition at line 122 of file Context.php.
|
protected |
Definition at line 39 of file Context.php.
|
protected |
Definition at line 87 of file Context.php.
|
protected |
Definition at line 80 of file Context.php.
|
protected |
Definition at line 59 of file Context.php.
|
protected |
Definition at line 52 of file Context.php.
|
protected |
Definition at line 108 of file Context.php.