65 \
Magento\Customer\Model\Session $customerSession,
66 \
Magento\SendFriend\Helper\Data $sendfriendData,
68 \
Magento\Customer\Helper\View $customerViewHelper,
73 $this->_customerSession = $customerSession;
75 $this->_sendfriendData = $sendfriendData;
77 parent::__construct($context,
$data);
78 $this->_isScopePrivate =
true;
80 $this->_customerViewHelper = $customerViewHelper;
99 return $this->_customerViewHelper->getCustomerName(
123 return $session->getCustomerDataObject()->getEmail();
136 return $this->
getFormData()->getData(
'sender/message');
148 $data = new \Magento\Framework\DataObject();
163 if (is_array(
$data)) {
177 return $this->
getRequest()->getParam(
'id',
null);
187 return $this->
getRequest()->getParam(
'cat_id',
null);
197 return $this->_sendfriendData->getMaxRecipients();
208 'sendfriend/product/sendmail',
223 return !$this->sendfriend->isExceedLimit();
getData($key='', $index=null)
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\SendFriend\Helper\Data $sendfriendData, \Magento\Framework\Registry $registry, \Magento\Customer\Helper\View $customerViewHelper, \Magento\Framework\App\Http\Context $httpContext, \Magento\SendFriend\Model\SendFriend $sendfriend, array $data=[])
getUrl($route='', $params=[])
setData($key, $value=null)
if(!isset($_GET['name'])) $name