Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Customer\Model\Session $customerSession, \Magento\Catalog\Api\CategoryRepositoryInterface $categoryRepository, \Psr\Log\LoggerInterface $logger, \Magento\Catalog\Api\ProductRepositoryInterface $productRepository, \Magento\Review\Model\ReviewFactory $reviewFactory, \Magento\Review\Model\RatingFactory $ratingFactory, \Magento\Catalog\Model\Design $catalogDesign, \Magento\Framework\Session\Generic $reviewSession, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator) | |
dispatch (RequestInterface $request) | |
![]() | |
__construct (Context $context) | |
dispatch (RequestInterface $request) | |
getActionFlag () | |
![]() | |
__construct (Context $context) | |
dispatch (RequestInterface $request) | |
getRequest () | |
getResponse () | |
![]() | |
execute () | |
Protected Member Functions | |
initProduct () | |
loadProduct ($productId) | |
![]() | |
_forward ($action, $controller=null, $module=null, array $params=null) | |
_redirect ($path, $arguments=[]) | |
Protected Attributes | |
$coreRegistry = null | |
$customerSession | |
$reviewSession | |
$categoryRepository | |
$logger | |
$productRepository | |
$reviewFactory | |
$ratingFactory | |
$catalogDesign | |
$storeManager | |
$formKeyValidator | |
![]() | |
$_objectManager | |
$_sessionNamespace | |
$_eventManager | |
$_actionFlag | |
$_redirect | |
$_view | |
$_url | |
$messageManager | |
![]() | |
$_request | |
$_response | |
$resultRedirectFactory | |
$resultFactory | |
Additional Inherited Members | |
![]() | |
const | FLAG_NO_DISPATCH = 'no-dispatch' |
const | FLAG_NO_POST_DISPATCH = 'no-postDispatch' |
const | FLAG_NO_DISPATCH_BLOCK_EVENT = 'no-beforeGenerateLayoutBlocksDispatch' |
const | PARAM_NAME_BASE64_URL = 'r64' |
const | PARAM_NAME_URL_ENCODED = 'uenc' |
Review controller
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 18 of file Product.php.
__construct | ( | \Magento\Framework\App\Action\Context | $context, |
\Magento\Framework\Registry | $coreRegistry, | ||
\Magento\Customer\Model\Session | $customerSession, | ||
\Magento\Catalog\Api\CategoryRepositoryInterface | $categoryRepository, | ||
\Psr\Log\LoggerInterface | $logger, | ||
\Magento\Catalog\Api\ProductRepositoryInterface | $productRepository, | ||
\Magento\Review\Model\ReviewFactory | $reviewFactory, | ||
\Magento\Review\Model\RatingFactory | $ratingFactory, | ||
\Magento\Catalog\Model\Design | $catalogDesign, | ||
\Magento\Framework\Session\Generic | $reviewSession, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Framework\Data\Form\FormKey\Validator | $formKeyValidator | ||
) |
\Magento\Framework\App\Action\Context | $context | |
\Magento\Framework\Registry | $coreRegistry | |
\Magento\Customer\Model\Session | $customerSession | |
\Magento\Catalog\Api\CategoryRepositoryInterface | $categoryRepository | |
\Psr\Log\LoggerInterface | $logger | |
\Magento\Catalog\Api\ProductRepositoryInterface | $productRepository | |
\Magento\Review\Model\ReviewFactory | $reviewFactory | |
\Magento\Review\Model\RatingFactory | $ratingFactory | |
\Magento\Catalog\Model\Design | $catalogDesign | |
\Magento\Framework\Session\Generic | $reviewSession | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Framework\Data\Form\FormKey\Validator | $formKeyValidator | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 112 of file Product.php.
dispatch | ( | RequestInterface | $request | ) |
Dispatch request
RequestInterface | $request |
Definition at line 147 of file Product.php.
|
protected |
Initialize and check product
Definition at line 177 of file Product.php.
|
protected |
Load product model with data by passed id. Return false if product was not loaded or has incorrect status.
int | $productId |
Definition at line 214 of file Product.php.
|
protected |
Definition at line 81 of file Product.php.
|
protected |
Definition at line 46 of file Product.php.
|
protected |
Definition at line 25 of file Product.php.
|
protected |
Definition at line 32 of file Product.php.
|
protected |
Definition at line 95 of file Product.php.
|
protected |
Definition at line 53 of file Product.php.
|
protected |
Definition at line 60 of file Product.php.
|
protected |
Definition at line 74 of file Product.php.
|
protected |
Definition at line 67 of file Product.php.
|
protected |
Definition at line 39 of file Product.php.
|
protected |
Definition at line 88 of file Product.php.