Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Model\Session\Quote $sessionQuote, \Magento\Sales\Model\AdminOrder\Create $orderCreate, PriceCurrencyInterface $priceCurrency, \Magento\Wishlist\Model\WishlistFactory $wishlistFactory, \Magento\GiftMessage\Model\Save $giftMessageSave, \Magento\Tax\Model\Config $taxConfig, \Magento\Tax\Helper\Data $taxData, \Magento\GiftMessage\Helper\Message $messageHelper, StockRegistryInterface $stockRegistry, StockStateInterface $stockState, array $data=[]) | |
getItems () | |
getSession () | |
getItemEditablePrice ($item) | |
getOriginalEditablePrice ($item) | |
getItemOrigPrice ($item) | |
isGiftMessagesAvailable ($item=null) | |
isAllowedForGiftMessage ($item) | |
displayTotalsIncludeTax () | |
getSubtotal () | |
getSubtotalWithDiscount () | |
getDiscountAmount () | |
getQuoteAddress () | |
usedCustomPriceForItem ($item) | |
canApplyCustomPrice ($item) | |
getQtyTitle ($item) | |
getTierHtml ($item) | |
getCustomOptions (Item $item) | |
getMoveToCustomerStorage () | |
displaySubtotalInclTax ($item) | |
displayOriginalPriceInclTax ($item) | |
displayRowTotalWithDiscountInclTax ($item) | |
getInclExclTaxMessage () | |
getStore () | |
getConfigureButtonHtml ($item) | |
getItemExtraInfo ($item) | |
isMoveToWishlistAllowed ($item) | |
getCustomerWishlists () | |
getItemUnitPriceHtml (Item $item) | |
getItemRowTotalHtml (Item $item) | |
getItemRowTotalWithDiscountHtml (Item $item) | |
![]() | |
__construct (\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Model\Session\Quote $sessionQuote, \Magento\Sales\Model\AdminOrder\Create $orderCreate, PriceCurrencyInterface $priceCurrency, array $data=[]) | |
getCreateOrderModel () | |
getQuote () | |
getCustomerId () | |
getStore () | |
getStoreId () | |
formatPrice ($value) | |
getItemPrice (Product $product) | |
convertPrice ($value, $format=true) | |
getProduct ($item) | |
![]() | |
getId () | |
getSuffixId ($suffix) | |
getHtmlId () | |
getCurrentUrl ($params=[]) | |
getButtonHtml ($label, $onclick, $class='', $buttonId=null, $dataAttr=[]) | |
![]() | |
__construct (\Magento\Backend\Block\Template\Context $context, array $data=[]) | |
getFormKey () | |
isOutputEnabled ($moduleName=null) | |
getAuthorization () | |
getToolbar () | |
![]() | |
__construct (Template\Context $context, array $data=[]) | |
setTemplateContext ($templateContext) | |
getTemplate () | |
setTemplate ($template) | |
getTemplateFile ($template=null) | |
getArea () | |
assign ($key, $value=null) | |
fetchView ($fileName) | |
getBaseUrl () | |
getObjectData (\Magento\Framework\DataObject $object, $key) | |
getCacheKeyInfo () | |
![]() | |
__construct (\Magento\Framework\View\Element\Context $context, array $data=[]) | |
getJsLayout () | |
getRequest () | |
getParentBlock () | |
setLayout (\Magento\Framework\View\LayoutInterface $layout) | |
getLayout () | |
setNameInLayout ($name) | |
getChildNames () | |
setAttribute ($name, $value=null) | |
setChild ($alias, $block) | |
addChild ($alias, $block, $data=[]) | |
unsetChild ($alias) | |
unsetCallChild ($alias, $callback, $result, $params) | |
unsetChildren () | |
getChildBlock ($alias) | |
getChildHtml ($alias='', $useCache=true) | |
getChildChildHtml ($alias, $childChildAlias='', $useCache=true) | |
getBlockHtml ($name) | |
insert ($element, $siblingName=0, $after=true, $alias='') | |
append ($element, $alias='') | |
getGroupChildNames ($groupName) | |
getChildData ($alias, $key='') | |
getUiId ($arg1=null, $arg2=null, $arg3=null, $arg4=null, $arg5=null) | |
getJsId ($arg1=null, $arg2=null, $arg3=null, $arg4=null, $arg5=null) | |
getUrl ($route='', $params=[]) | |
getViewFileUrl ($fileId, array $params=[]) | |
formatDate ( $date=null, $format=\IntlDateFormatter::SHORT, $showTime=false, $timezone=null) | |
formatTime ( $time=null, $format=\IntlDateFormatter::SHORT, $showDate=false) | |
getModuleName () | |
escapeHtml ($data, $allowedTags=null) | |
escapeJs ($string) | |
escapeHtmlAttr ($string, $escapeSingleQuote=true) | |
escapeCss ($string) | |
stripTags ($data, $allowableTags=null, $allowHtmlEntities=false) | |
escapeUrl ($string) | |
escapeXssInUrl ($data) | |
escapeQuote ($data, $addSlashes=false) | |
escapeJsQuote ($data, $quote='\'') | |
getNameInLayout () | |
getCacheKeyInfo () | |
getCacheKey () | |
getVar ($name, $module=null) | |
isScopePrivate () | |
![]() | |
__construct (array $data=[]) | |
addData (array $arr) | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
getData ($key='', $index=null) | |
getDataByPath ($path) | |
getDataByKey ($key) | |
setDataUsingMethod ($key, $args=[]) | |
getDataUsingMethod ($key, $args=null) | |
hasData ($key='') | |
toArray (array $keys=[]) | |
convertToArray (array $keys=[]) | |
toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
toJson (array $keys=[]) | |
convertToJson (array $keys=[]) | |
toString ($format='') | |
__call ($method, $args) | |
isEmpty () | |
serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
debug ($data=null, &$objects=[]) | |
offsetSet ($offset, $value) | |
offsetExists ($offset) | |
offsetUnset ($offset) | |
offsetGet ($offset) | |
![]() | |
toHtml () | |
Protected Member Functions | |
_construct () | |
_getBundleTierPriceInfo ($prices) | |
_getTierPriceInfo ($prices) | |
![]() | |
_getSession () | |
![]() | |
_addBreadcrumb ($label, $title=null, $link=null) | |
![]() | |
_toHtml () | |
![]() | |
_construct () | |
_toHtml () | |
getRootDirectory () | |
getMediaDirectory () | |
![]() | |
_construct () | |
_prepareLayout () | |
_beforeToHtml () | |
_afterToHtml ($html) | |
_toHtml () | |
_getNotFoundUrl ($route='', $params=['_direct'=> 'core/index/notFound']) | |
getCacheTags () | |
getCacheLifetime () | |
_loadCache () | |
_saveCache ($data) | |
_getSidPlaceholder ($cacheKey=null) | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Protected Attributes | |
$_moveToCustomerStorage = true | |
$_taxData | |
$_wishlistFactory | |
$_giftMessageSave | |
$_taxConfig | |
$_messageHelper | |
$stockRegistry | |
$stockState | |
![]() | |
$_sessionQuote | |
$_orderCreate | |
$priceCurrency | |
![]() | |
$_authorization | |
$mathRandom | |
$_backendSession | |
$formKey | |
$nameBuilder | |
![]() | |
$_viewVars = [] | |
$_baseUrl | |
$_jsUrl | |
$_allowSymlinks | |
$_filesystem | |
$_template | |
$templateEnginePool | |
$_storeManager | |
$_appState | |
$directory | |
$templateContext | |
$pageConfig | |
$resolver | |
$validator | |
![]() | |
$_design | |
$_session | |
$_sidResolver | |
$_nameInLayout | |
$_layout | |
$jsLayout = [] | |
$_request | |
$_urlBuilder | |
$_eventManager | |
$_frontController | |
$_assetRepo | |
$_viewConfig | |
$_cacheState | |
$_logger | |
$_escaper | |
$filterManager | |
$_localeDate | |
$inlineTranslation | |
$_isScopePrivate = false | |
$_scopeConfig | |
$_cache | |
![]() | |
$_data = [] | |
Additional Inherited Members | |
![]() | |
static | extractModuleName ($className) |
![]() | |
const | XML_PATH_TEMPLATE_ALLOW_SYMLINK = 'dev/template/allow_symlink' |
![]() | |
const | CACHE_GROUP = \Magento\Framework\App\Cache\Type\Block::TYPE_IDENTIFIER |
const | CACHE_KEY_PREFIX = 'BLOCK_' |
![]() | |
static | $_underscoreCache = [] |
Adminhtml sales order create items grid block @api @SuppressWarnings(PHPMD.CouplingBetweenObjects)
__construct | ( | \Magento\Backend\Block\Template\Context | $context, |
\Magento\Backend\Model\Session\Quote | $sessionQuote, | ||
\Magento\Sales\Model\AdminOrder\Create | $orderCreate, | ||
PriceCurrencyInterface | $priceCurrency, | ||
\Magento\Wishlist\Model\WishlistFactory | $wishlistFactory, | ||
\Magento\GiftMessage\Model\Save | $giftMessageSave, | ||
\Magento\Tax\Model\Config | $taxConfig, | ||
\Magento\Tax\Helper\Data | $taxData, | ||
\Magento\GiftMessage\Helper\Message | $messageHelper, | ||
StockRegistryInterface | $stockRegistry, | ||
StockStateInterface | $stockState, | ||
array | $data = [] |
||
) |
\Magento\Backend\Block\Template\Context | $context | |
\Magento\Backend\Model\Session\Quote | $sessionQuote | |
\Magento\Sales\Model\AdminOrder\Create | $orderCreate | |
PriceCurrencyInterface | $priceCurrency | |
\Magento\Wishlist\Model\WishlistFactory | $wishlistFactory | |
\Magento\GiftMessage\Model\Save | $giftMessageSave | |
\Magento\Tax\Model\Config | $taxConfig | |
\Magento\Tax\Helper\Data | $taxData | |
\Magento\GiftMessage\Helper\Message | $messageHelper | |
StockRegistryInterface | $stockRegistry | |
StockStateInterface | $stockState | |
array | $data | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 90 of file Grid.php.
|
protected |
|
protected |
|
protected |
Get tier price info to display in grid
array | $prices |
Definition at line 414 of file Grid.php.
canApplyCustomPrice | ( | $item | ) |
Define if custom price can be applied for specified item
Item | $item |
displayOriginalPriceInclTax | ( | $item | ) |
Display original price including tax
Item | $item |
Definition at line 488 of file Grid.php.
displayRowTotalWithDiscountInclTax | ( | $item | ) |
Display row total with discount including tax
Item | $item |
Definition at line 503 of file Grid.php.
displaySubtotalInclTax | ( | $item | ) |
Display subtotal including tax
Item | $item |
Definition at line 472 of file Grid.php.
displayTotalsIncludeTax | ( | ) |
getConfigureButtonHtml | ( | $item | ) |
getCustomerWishlists | ( | ) |
Retrieve collection of customer wishlists
Definition at line 583 of file Grid.php.
getCustomOptions | ( | Item | $item | ) |
Get Custom Options of item
Item | $item |
Definition at line 433 of file Grid.php.
getDiscountAmount | ( | ) |
Get discount amount
Definition at line 305 of file Grid.php.
getInclExclTaxMessage | ( | ) |
Get including/excluding tax message
getItemEditablePrice | ( | $item | ) |
getItemExtraInfo | ( | $item | ) |
getItemOrigPrice | ( | $item | ) |
Get item original price
Item | $item |
Definition at line 223 of file Grid.php.
getItemRowTotalHtml | ( | Item | $item | ) |
getItemRowTotalWithDiscountHtml | ( | Item | $item | ) |
getItems | ( | ) |
Get items
Definition at line 130 of file Grid.php.
getItemUnitPriceHtml | ( | Item | $item | ) |
getMoveToCustomerStorage | ( | ) |
Get flag for rights to move items to customer storage
Definition at line 461 of file Grid.php.
getOriginalEditablePrice | ( | $item | ) |
getQtyTitle | ( | $item | ) |
Get qty title
Item | $item |
Definition at line 352 of file Grid.php.
getQuoteAddress | ( | ) |
Retrieve quote address
Definition at line 315 of file Grid.php.
getSession | ( | ) |
Get session
Definition at line 179 of file Grid.php.
getStore | ( | ) |
Get store
Definition at line 528 of file Grid.php.
getSubtotal | ( | ) |
Get subtotal
Definition at line 270 of file Grid.php.
getSubtotalWithDiscount | ( | ) |
Get subtotal with discount
Definition at line 287 of file Grid.php.
getTierHtml | ( | $item | ) |
Get tier price html
Item | $item |
Definition at line 376 of file Grid.php.
isAllowedForGiftMessage | ( | $item | ) |
isGiftMessagesAvailable | ( | $item = null | ) |
Check gift messages availability
Item | null | $item |
Definition at line 234 of file Grid.php.
isMoveToWishlistAllowed | ( | $item | ) |
usedCustomPriceForItem | ( | $item | ) |
Define if specified item has already applied custom price
Item | $item |