![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-reports/Model/Product/Index/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Reports\Model\Product\Index; /** * Catalog Viewed Product Index * * @method \Magento\Reports\Model\Product\Index\Viewed setVisitorId(int $value) * @method \Magento\Reports\Model\Product\Index\Viewed setCustomerId(int $value) * @method int getProductId() * @method \Magento\Reports\Model\Product\Index\Viewed setProductId(int $value) * @method \Magento\Reports\Model\Product\Index\Viewed setStoreId(int $value) * @method string getAddedAt() * @method \Magento\Reports\Model\Product\Index\Viewed setAddedAt(string $value) * * @author Magento Core Team <[email protected]> * @api * @since 100.0.2 */ class Viewed extends \Magento\Reports\Model\Product\Index\AbstractIndex { /** * Cache key name for Count of product index * * @var string */ protected $_countCacheKey = 'product_index_viewed_count'; /** * Initialize resource model * * @return void */ protected function _construct() { $this->_init(\Magento\Reports\Model\ResourceModel\Product\Index\Viewed::class); } /** * Retrieve Exclude Product Ids List for Collection * * @return array */ public function getExcludeProductIds() { $productIds = []; if ($this->_registry->registry('current_product')) { $productIds[] = $this->_registry->registry('current_product')->getId(); } return $productIds; } }