Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Model\Session $catalogSession, \Magento\Catalog\Model\Config $catalogConfig, ToolbarModel $toolbarModel, \Magento\Framework\Url\EncoderInterface $urlEncoder, ProductList $productListHelper, \Magento\Framework\Data\Helper\PostHelper $postDataHelper, array $data=[]) | |
disableParamsMemorizing () | |
setCollection ($collection) | |
getCollection () | |
getCurrentPage () | |
getCurrentOrder () | |
getCurrentDirection () | |
setDefaultOrder ($field) | |
setDefaultDirection ($dir) | |
getAvailableOrders () | |
setAvailableOrders ($orders) | |
addOrderToAvailableOrders ($order, $value) | |
removeOrderFromAvailableOrders ($order) | |
isOrderCurrent ($order) | |
getPagerUrl ($params=[]) | |
getPagerEncodedUrl ($params=[]) | |
getCurrentMode () | |
isModeActive ($mode) | |
getModes () | |
setModes ($modes) | |
disableViewSwitcher () | |
enableViewSwitcher () | |
isEnabledViewSwitcher () | |
disableExpanded () | |
enableExpanded () | |
isExpanded () | |
getDefaultPerPageValue () | |
getAvailableLimit () | |
getLimit () | |
isLimitCurrent ($limit) | |
getFirstNum () | |
getLastNum () | |
getTotalNum () | |
isFirstPage () | |
getLastPageNum () | |
getPagerHtml () | |
getWidgetOptionsJson (array $customOptions=[]) | |
![]() | |
__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 | |
_memorizeParam ($param, $value) | |
getOrderField () | |
![]() | |
_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) | |
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 = [] |
__construct | ( | \Magento\Framework\View\Element\Template\Context | $context, |
\Magento\Catalog\Model\Session | $catalogSession, | ||
\Magento\Catalog\Model\Config | $catalogConfig, | ||
ToolbarModel | $toolbarModel, | ||
\Magento\Framework\Url\EncoderInterface | $urlEncoder, | ||
ProductList | $productListHelper, | ||
\Magento\Framework\Data\Helper\PostHelper | $postDataHelper, | ||
array | $data = [] |
||
) |
\Magento\Framework\View\Element\Template\Context | $context | |
\Magento\Catalog\Model\Session | $catalogSession | |
\Magento\Catalog\Model\Config | $catalogConfig | |
ToolbarModel | $toolbarModel | |
\Magento\Framework\Url\EncoderInterface | $urlEncoder | |
ProductList | $productListHelper | |
\Magento\Framework\Data\Helper\PostHelper | $postDataHelper | |
array | $data |
Definition at line 132 of file Toolbar.php.
|
protected |
Memorize parameter value for session
string | $param | parameter name |
mixed | $value | parameter value |
Definition at line 169 of file Toolbar.php.
addOrderToAvailableOrders | ( | $order, | |
$value | |||
) |
Add order to available orders
string | $order | |
string | $value |
Definition at line 345 of file Toolbar.php.
disableExpanded | ( | ) |
Disable Expanded
Definition at line 500 of file Toolbar.php.
disableParamsMemorizing | ( | ) |
disableViewSwitcher | ( | ) |
Disable view switcher
Definition at line 468 of file Toolbar.php.
enableExpanded | ( | ) |
Enable Expanded
Definition at line 511 of file Toolbar.php.
enableViewSwitcher | ( | ) |
Enable view switcher
Definition at line 479 of file Toolbar.php.
getAvailableLimit | ( | ) |
Retrieve available limits for current view mode
Definition at line 547 of file Toolbar.php.
getAvailableOrders | ( | ) |
Retrieve available Order fields list
Definition at line 320 of file Toolbar.php.
getCollection | ( | ) |
Return products collection instance
Definition at line 212 of file Toolbar.php.
getCurrentDirection | ( | ) |
Retrieve current direction
Definition at line 265 of file Toolbar.php.
getCurrentMode | ( | ) |
Retrieve current View mode
Definition at line 408 of file Toolbar.php.
getCurrentOrder | ( | ) |
Get grit products sort order field
Definition at line 232 of file Toolbar.php.
getCurrentPage | ( | ) |
getDefaultPerPageValue | ( | ) |
Retrieve default per page values
Definition at line 532 of file Toolbar.php.
getFirstNum | ( | ) |
getLastNum | ( | ) |
getLastPageNum | ( | ) |
getLimit | ( | ) |
Get specified products limit display per page
Definition at line 557 of file Toolbar.php.
getModes | ( | ) |
Retrieve available view modes
Definition at line 440 of file Toolbar.php.
|
protected |
Get order field
Definition at line 705 of file Toolbar.php.
getPagerEncodedUrl | ( | $params = [] | ) |
array | $params |
Definition at line 398 of file Toolbar.php.
getPagerHtml | ( | ) |
Render pagination HTML
Definition at line 640 of file Toolbar.php.
getPagerUrl | ( | $params = [] | ) |
Return current URL with rewrites and additional parameters
array | $params | Query parameters |
Definition at line 384 of file Toolbar.php.
getTotalNum | ( | ) |
getWidgetOptionsJson | ( | array | $customOptions = [] | ) |
Retrieve widget options in json format
array | $customOptions | Optional parameter for passing custom selectors from template |
Definition at line 682 of file Toolbar.php.
isEnabledViewSwitcher | ( | ) |
Is a enabled view switcher
Definition at line 490 of file Toolbar.php.
isExpanded | ( | ) |
Check is Expanded
Definition at line 522 of file Toolbar.php.
isFirstPage | ( | ) |
isLimitCurrent | ( | $limit | ) |
isModeActive | ( | $mode | ) |
Compare defined view mode with current active mode
string | $mode |
Definition at line 430 of file Toolbar.php.
isOrderCurrent | ( | $order | ) |
Compare defined order field with current order field
string | $order |
Definition at line 373 of file Toolbar.php.
removeOrderFromAvailableOrders | ( | $order | ) |
Remove order from available orders if exists
string | $order |
Definition at line 358 of file Toolbar.php.
setAvailableOrders | ( | $orders | ) |
Set Available order fields list
array | $orders |
Definition at line 332 of file Toolbar.php.
setCollection | ( | $collection | ) |
Set collection to pager
\Magento\Framework\Data\Collection | $collection |
Definition at line 183 of file Toolbar.php.
setDefaultDirection | ( | $dir | ) |
Set default sort direction
string | $dir |
Definition at line 307 of file Toolbar.php.
setDefaultOrder | ( | $field | ) |
Set default Order field
string | $field |
Definition at line 292 of file Toolbar.php.
setModes | ( | $modes | ) |
Set available view modes list
array | $modes |
Definition at line 454 of file Toolbar.php.
|
protected |
Definition at line 41 of file Toolbar.php.
|
protected |
Definition at line 34 of file Toolbar.php.
|
protected |
Definition at line 93 of file Toolbar.php.
|
protected |
Definition at line 100 of file Toolbar.php.
|
protected |
Definition at line 27 of file Toolbar.php.
|
protected |
Definition at line 69 of file Toolbar.php.
|
protected |
Definition at line 48 of file Toolbar.php.
|
protected |
Definition at line 55 of file Toolbar.php.
|
protected |
Definition at line 62 of file Toolbar.php.
|
protected |
Definition at line 81 of file Toolbar.php.
|
protected |
Definition at line 120 of file Toolbar.php.
|
protected |
Definition at line 110 of file Toolbar.php.
|
protected |
Definition at line 86 of file Toolbar.php.
|
protected |
Definition at line 105 of file Toolbar.php.
|
protected |
Definition at line 76 of file Toolbar.php.
|
protected |
Definition at line 115 of file Toolbar.php.