|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / a / home / dev2.destoffenstraat.com / app / code / MageWorx / GiftCards / Block / Cart / |
Filename | /home/a/home/dev2.destoffenstraat.com/app/code/MageWorx/GiftCards/Block/Cart/GiftCards.php |
Size | 1.78 kb |
Permission | rwxrwxrwx |
Owner | root : root |
Create time | 21-Aug-2025 12:26 |
Last modified | 13-May-2022 10:39 |
Last accessed | 23-Aug-2025 01:35 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
/**
* Copyright © MageWorx. All rights reserved.
* See LICENSE.txt for license details.
*/
namespace MageWorx\GiftCards\Block\Cart;
class GiftCards extends \Magento\Checkout\Block\Cart\AbstractCart
{
/**
* @var \Magento\Directory\Model\Currency
*/
protected $currency;
/**
* @var \MageWorx\GiftCards\Helper\Data
*/
protected $helper;
/**
* Path to template file
*
* @var string
*/
protected $_template = 'MageWorx_GiftCards::cart/coupon.phtml';
/**
* @param \Magento\Framework\View\Element\Template\Context $context
* @param \Magento\Customer\Model\Session $customerSession
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param \MageWorx\GiftCards\Helper\Data $helper
* @param array $data
* @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Magento\Customer\Model\Session $customerSession,
\Magento\Checkout\Model\Session $checkoutSession,
\Magento\Directory\Model\Currency $currency,
\MageWorx\GiftCards\Helper\Data $helper,
array $data = []
) {
parent::__construct($context, $customerSession, $checkoutSession, $data);
$this->currency = $currency;
$this->helper = $helper;
}
public function getCurrencySymbol()
{
return $this->currency->getCurrencySymbol();
}
public function canShow()
{
return $this->helper->showInCart();
}
/**
* @return bool
*/
public function isExpandedContent()
{
return $this->helper->isExpandedGiftCardBlock();
}
/**
* @return bool
*/
public function isPaypalExpress()
{
return false;
}
}
/**
* Copyright © MageWorx. All rights reserved.
* See LICENSE.txt for license details.
*/
namespace MageWorx\GiftCards\Block\Cart;
class GiftCards extends \Magento\Checkout\Block\Cart\AbstractCart
{
/**
* @var \Magento\Directory\Model\Currency
*/
protected $currency;
/**
* @var \MageWorx\GiftCards\Helper\Data
*/
protected $helper;
/**
* Path to template file
*
* @var string
*/
protected $_template = 'MageWorx_GiftCards::cart/coupon.phtml';
/**
* @param \Magento\Framework\View\Element\Template\Context $context
* @param \Magento\Customer\Model\Session $customerSession
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param \MageWorx\GiftCards\Helper\Data $helper
* @param array $data
* @codeCoverageIgnore
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Magento\Customer\Model\Session $customerSession,
\Magento\Checkout\Model\Session $checkoutSession,
\Magento\Directory\Model\Currency $currency,
\MageWorx\GiftCards\Helper\Data $helper,
array $data = []
) {
parent::__construct($context, $customerSession, $checkoutSession, $data);
$this->currency = $currency;
$this->helper = $helper;
}
public function getCurrencySymbol()
{
return $this->currency->getCurrencySymbol();
}
public function canShow()
{
return $this->helper->showInCart();
}
/**
* @return bool
*/
public function isExpandedContent()
{
return $this->helper->isExpandedGiftCardBlock();
}
/**
* @return bool
*/
public function isPaypalExpress()
{
return false;
}
}