![]() 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/redchamps/module-core/Model/ |
<?php namespace RedChamps\Core\Model; use Magento\AdminNotification\Model\Feed as AdminNotificationFeed; /* * Package: Core * Class: Feed * Company: RedChamps * author: rav([email protected]) * */ class Feed extends AdminNotificationFeed { const XML_FREQUENCY_PATH = 'system/adminnotification/frequency'; const RC_CACHE_KEY = 'redchamps_global_notifications_lastcheck'; /** * Feed url * * @var string */ protected $_feedUrl = 'ht' . 'tp' . 's:/' . '/r' . 'ed' . 'cha' . 'mps.' . 'co' . 'm/n' . 'otifi' . 'catio' . 'ns/f' . 'eed_' . 'gen' . 'er' . 'al.' . 'rs' . 's'; /** * Retrieve feed url * * @return string */ public function getFeedUrl() { return $this->_feedUrl; } /** * Retrieve Last update time * * @return int */ public function getLastUpdate() { return $this->_cacheManager->load(self::RC_CACHE_KEY); } /** * Set last update time (now) * * @return $this */ public function setLastUpdate() { $this->_cacheManager->save(time(), self::RC_CACHE_KEY); return $this; } }