Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-offline-payments
Block
Info
Checkmo.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\OfflinePayments\Block\Info
;
7
8
class
Checkmo
extends
\Magento\Payment\Block\Info
9
{
13
protected
$_payableTo
;
14
18
protected
$_mailingAddress
;
19
23
protected
$_template
=
'Magento_OfflinePayments::info/checkmo.phtml'
;
24
30
public
function
getPayableTo
()
31
{
32
if
($this->_payableTo ===
null
) {
33
$this->
_convertAdditionalData
();
34
}
35
return
$this->_payableTo
;
36
}
37
43
public
function
getMailingAddress
()
44
{
45
if
($this->_mailingAddress ===
null
) {
46
$this->
_convertAdditionalData
();
47
}
48
return
$this->_mailingAddress
;
49
}
50
55
protected
function
_convertAdditionalData
()
56
{
57
$this->_payableTo = $this->
getInfo
()->getAdditionalInformation(
'payable_to'
);
58
$this->_mailingAddress = $this->
getInfo
()->getAdditionalInformation(
'mailing_address'
);
59
return
$this;
60
}
61
65
public
function
toPdf
()
66
{
67
$this->
setTemplate
(
'Magento_OfflinePayments::info/pdf/checkmo.phtml'
);
68
return
$this->
toHtml
();
69
}
70
}
Magento\Payment\Block\Info
Definition:
Info.php:14
Magento\Framework\View\Element\Template\setTemplate
setTemplate($template)
Definition:
Template.php:203
Magento\OfflinePayments\Block\Info\Checkmo\getPayableTo
getPayableTo()
Definition:
Checkmo.php:30
Magento\Framework\View\Element\BlockInterface\toHtml
toHtml()
Magento\OfflinePayments\Block\Info\Checkmo\toPdf
toPdf()
Definition:
Checkmo.php:65
Magento\OfflinePayments\Block\Info\Checkmo
Definition:
Checkmo.php:8
Magento\Payment\Block\Info\getInfo
getInfo()
Definition:
Info.php:34
Magento\OfflinePayments\Block\Info
Definition:
Checkmo.php:6
Magento\OfflinePayments\Block\Info\Checkmo\_convertAdditionalData
_convertAdditionalData()
Definition:
Checkmo.php:55
Magento\OfflinePayments\Block\Info\Checkmo\$_mailingAddress
$_mailingAddress
Definition:
Checkmo.php:18
Magento\OfflinePayments\Block\Info\Checkmo\getMailingAddress
getMailingAddress()
Definition:
Checkmo.php:43
Magento\OfflinePayments\Block\Info\Checkmo\$_template
$_template
Definition:
Checkmo.php:23
Magento\OfflinePayments\Block\Info\Checkmo\$_payableTo
$_payableTo
Definition:
Checkmo.php:13