Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getColumnSet () | |
getExportButtonHtml () | |
addExportType ($url, $label) | |
addColumn ($columnId, $column) | |
removeColumn ($columnId) | |
addColumnAfter ($columnId, $column, $after) | |
addColumnsOrder ($columnId, $after) | |
getColumnsOrder () | |
sortColumnsByOrder () | |
getLastColumnId () | |
getHtml () | |
getMassactionIdField () | |
setMassactionIdField ($idField) | |
getMassactionIdFilter () | |
setMassactionIdFilter ($idFilter) | |
getMassactionBlockName () | |
setMassactionBlockName ($blockName) | |
getMassactionBlock () | |
getMassactionBlockHtml () | |
getSubTotalColumns () | |
shouldRenderCell ($item, $column) | |
getEmptyCellLabel () | |
setEmptyCellLabel ($label) | |
getRowUrl ($item) | |
getMultipleRows ($item) | |
getMultipleRowColumns () | |
shouldRenderSubTotal ($item) | |
getRowspan ($item, $column) | |
isColumnGrouped ($column, $value=null) | |
shouldRenderEmptyCell ($item, $column) | |
getEmptyCellColspan () | |
getSubTotalItem ($item) | |
getColumnCount () | |
setHeadersVisibility ($visible=true) | |
getHeadersVisibility () | |
setFilterVisibility ($visible=true) | |
getFilterVisibility () | |
setEmptyText ($text) | |
getEmptyText () | |
setEmptyTextClass ($cssClass) | |
getEmptyTextClass () | |
setIsCollapsed ($isCollapsed) | |
getIsCollapsed () | |
_exportIterateCollection ($callback, array $args) | |
getCsvFile () | |
getCsv () | |
getXml () | |
getRowRecord (\Magento\Framework\DataObject $data) | |
getExcelFile ($sheetName='') | |
getExcel () | |
getExportTypes () | |
setCollection ($collection) | |
getCollection () | |
setCountSubTotals ($flag=true) | |
getCountSubTotals () | |
setSubTotals (array $items) | |
getSubTotals () | |
getMainButtonsHtml () | |
![]() | |
__construct (\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, array $data=[]) | |
setCollection ($collection) | |
getCollection () | |
getColumnSet () | |
getExportBlock () | |
getColumns () | |
getColumnCount () | |
getColumn ($columnId) | |
getPreparedCollection () | |
getMassactionBlock () | |
getVarNameLimit () | |
getVarNamePage () | |
getVarNameSort () | |
getVarNameDir () | |
getVarNameFilter () | |
setVarNameLimit ($name) | |
setVarNamePage ($name) | |
setVarNameSort ($name) | |
setVarNameDir ($name) | |
setVarNameFilter ($name) | |
setPagerVisibility ($visible=true) | |
getPagerVisibility () | |
setMessageBlockVisibility ($visible=true) | |
getMessageBlockVisibility () | |
setDefaultLimit ($limit) | |
setDefaultPage ($page) | |
setDefaultSort ($sort) | |
setDefaultDir ($dir) | |
setDefaultFilter ($filter) | |
canDisplayContainer () | |
getGridUrl () | |
getAbsoluteGridUrl ($params=[]) | |
getParam ($paramName, $default=null) | |
setSaveParametersInSession ($flag) | |
getJsObjectName () | |
setCountTotals ($count=true) | |
getCountTotals () | |
setTotals (\Magento\Framework\DataObject $totals) | |
getTotals () | |
getMainButtonsHtml () | |
getResetFilterButtonHtml () | |
getSearchButtonHtml () | |
![]() | |
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 () | |
![]() | |
getId () | |
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 = [] |
@api
Definition at line 20 of file Extended.php.
|
protected |
|
protected |
|
protected |
Write item data to csv export file
\Magento\Framework\DataObject | $item | |
\Magento\Framework\Filesystem\File\WriteInterface | $stream |
Definition at line 987 of file Extended.php.
_exportIterateCollection | ( | $callback, | |
array | $args | ||
) |
Iterate collection and call callback method per item For callback method first argument always is item object
string | $callback | |
array | $args | additional arguments for callback method |
Definition at line 952 of file Extended.php.
|
protected |
|
protected |
Retrieve Totals row array for Export
Definition at line 932 of file Extended.php.
|
protected |
Retrieve file content from file container array
array | $fileData |
Definition at line 906 of file Extended.php.
|
protected |
Apply sorting and filtering to collection
Definition at line 471 of file Extended.php.
|
protected |
Initialize grid columns
Definition at line 398 of file Extended.php.
|
protected |
Initialize grid before rendering
Definition at line 504 of file Extended.php.
|
protected |
Initialize child blocks
Definition at line 195 of file Extended.php.
|
protected |
|
protected |
Prepare grid massaction block
Definition at line 409 of file Extended.php.
|
protected |
Prepare grid massaction column
Definition at line 434 of file Extended.php.
addColumn | ( | $columnId, | |
$column | |||
) |
Add column to grid
string | $columnId | |
array | \Magento\Framework\DataObject | $column |
Definition at line 287 of file Extended.php.
addColumnAfter | ( | $columnId, | |
$column, | |||
$after | |||
) |
Add column to grid after specified column.
string | $columnId | |
array | \Magento\Framework\DataObject | $column | |
string | $after |
Definition at line 333 of file Extended.php.
addColumnsOrder | ( | $columnId, | |
$after | |||
) |
Add column view order
string | $columnId | |
string | $after |
Definition at line 347 of file Extended.php.
addExportType | ( | $url, | |
$label | |||
) |
Add new export type to grid
string | $url | |
string | $label |
Implements ExportInterface.
Definition at line 271 of file Extended.php.
getCollection | ( | ) |
get collection object
Definition at line 1251 of file Extended.php.
getColumnCount | ( | ) |
getColumnSet | ( | ) |
Retrieve column set block
Definition at line 243 of file Extended.php.
getColumnsOrder | ( | ) |
getCountSubTotals | ( | ) |
Return count subtotals
Definition at line 1274 of file Extended.php.
getCsv | ( | ) |
Retrieve Grid data as CSV
Implements ExportInterface.
Definition at line 1041 of file Extended.php.
getCsvFile | ( | ) |
Retrieve a file container array by grid data as CSV
Return array with keys type and value
Implements ExportInterface.
Definition at line 1007 of file Extended.php.
getEmptyCellColspan | ( | ) |
Retrieve colspan for empty cell
Definition at line 756 of file Extended.php.
getEmptyCellLabel | ( | ) |
Retrieve label for empty cell
Definition at line 641 of file Extended.php.
getEmptyText | ( | ) |
getEmptyTextClass | ( | ) |
getExcel | ( | ) |
Retrieve grid data as MS Excel 2003 XML Document
Implements ExportInterface.
Definition at line 1184 of file Extended.php.
getExcelFile | ( | $sheetName = '' | ) |
Retrieve a file container array by grid data as MS Excel 2003 XML Document
Return array with keys type and value
string | $sheetName |
Implements ExportInterface.
Definition at line 1146 of file Extended.php.
getExportButtonHtml | ( | ) |
Generate export button
Implements ExportInterface.
Definition at line 259 of file Extended.php.
getExportTypes | ( | ) |
Retrieve grid export types
Implements ExportInterface.
Definition at line 1230 of file Extended.php.
getFilterVisibility | ( | ) |
Return visibility of filter
Definition at line 828 of file Extended.php.
getHeadersVisibility | ( | ) |
Return visibility of column headers
Definition at line 806 of file Extended.php.
getHtml | ( | ) |
getIsCollapsed | ( | ) |
Retrieve flag is collapsed
Definition at line 895 of file Extended.php.
getLastColumnId | ( | ) |
getMainButtonsHtml | ( | ) |
Generate list of grid buttons
Definition at line 1306 of file Extended.php.
getMassactionBlock | ( | ) |
Retrieve massaction block
Definition at line 593 of file Extended.php.
getMassactionBlockHtml | ( | ) |
Generate massaction block
Definition at line 603 of file Extended.php.
getMassactionBlockName | ( | ) |
Retrieve massaction block name
Definition at line 571 of file Extended.php.
getMassactionIdField | ( | ) |
Retrieve massaction row identifier field
Definition at line 527 of file Extended.php.
getMassactionIdFilter | ( | ) |
Retrieve massaction row identifier filter
Definition at line 549 of file Extended.php.
getMultipleRowColumns | ( | ) |
getMultipleRows | ( | $item | ) |
Get children of specified item
\Magento\Framework\DataObject | $item |
Definition at line 676 of file Extended.php.
getRowRecord | ( | \Magento\Framework\DataObject | $data | ) |
Get a row data of the particular columns
\Magento\Framework\DataObject | $data |
Definition at line 1127 of file Extended.php.
getRowspan | ( | $item, | |
$column | |||
) |
Retrieve rowspan number
\Magento\Framework\DataObject | $item | |
\Magento\Backend\Block\Widget\Grid\Column | $column |
Definition at line 712 of file Extended.php.
getRowUrl | ( | $item | ) |
Return row url for js event handlers
\Magento\Catalog\Model\Product | \Magento\Framework\DataObject | $item |
Definition at line 664 of file Extended.php.
getSubTotalColumns | ( | ) |
getSubTotalItem | ( | $item | ) |
Retrieve subtotal item
\Magento\Framework\DataObject | $item |
Definition at line 767 of file Extended.php.
getSubTotals | ( | ) |
Retrieve subtotal items
Definition at line 1296 of file Extended.php.
getXml | ( | ) |
Retrieve data in xml
Implements ExportInterface.
Definition at line 1095 of file Extended.php.
isColumnGrouped | ( | $column, | |
$value = null |
|||
) |
Check whether given column is grouped
string | object | $column | |
string | $value |
Definition at line 727 of file Extended.php.
removeColumn | ( | $columnId | ) |
Remove existing column
string | $columnId |
Definition at line 313 of file Extended.php.
setCollection | ( | $collection | ) |
Set collection object
\Magento\Framework\Data\Collection | $collection |
Definition at line 1241 of file Extended.php.
setCountSubTotals | ( | $flag = true | ) |
setEmptyCellLabel | ( | $label | ) |
Set label for empty cell
string | $label |
Definition at line 652 of file Extended.php.
setEmptyText | ( | $text | ) |
Set empty text for grid
string | $text |
Definition at line 839 of file Extended.php.
setEmptyTextClass | ( | $cssClass | ) |
Set empty text CSS class
string | $cssClass |
Definition at line 861 of file Extended.php.
setFilterVisibility | ( | $visible = true | ) |
Set visibility of filter
bool | $visible |
Definition at line 817 of file Extended.php.
setHeadersVisibility | ( | $visible = true | ) |
Set visibility of column headers
bool | $visible |
Definition at line 795 of file Extended.php.
setIsCollapsed | ( | $isCollapsed | ) |
Set flag whether is collapsed
bool | $isCollapsed |
Definition at line 883 of file Extended.php.
setMassactionBlockName | ( | $blockName | ) |
Set massaction block name
string | $blockName |
Definition at line 582 of file Extended.php.
setMassactionIdField | ( | $idField | ) |
Set massaction row identifier field
string | $idField |
Definition at line 538 of file Extended.php.
setMassactionIdFilter | ( | $idFilter | ) |
Set massaction row identifier filter
string | $idFilter |
Definition at line 560 of file Extended.php.
setSubTotals | ( | array | $items | ) |
shouldRenderCell | ( | $item, | |
$column | |||
) |
Check whether should render cell
\Magento\Framework\DataObject | $item | |
\Magento\Backend\Block\Widget\Grid\Column | $column |
Definition at line 625 of file Extended.php.
shouldRenderEmptyCell | ( | $item, | |
$column | |||
) |
Check whether should render empty cell
\Magento\Framework\DataObject | $item | |
\Magento\Backend\Block\Widget\Grid\Column | $column |
Definition at line 746 of file Extended.php.
shouldRenderSubTotal | ( | $item | ) |
Check whether subtotal should be rendered
\Magento\Framework\DataObject | $item |
Definition at line 700 of file Extended.php.
sortColumnsByOrder | ( | ) |
Sort columns by predefined order
Definition at line 368 of file Extended.php.
|
protected |
Definition at line 43 of file Extended.php.
|
protected |
Definition at line 36 of file Extended.php.
|
protected |
Definition at line 99 of file Extended.php.
|
protected |
Definition at line 153 of file Extended.php.
|
protected |
Definition at line 170 of file Extended.php.
|
protected |
Definition at line 106 of file Extended.php.
|
protected |
Definition at line 134 of file Extended.php.
|
protected |
Definition at line 141 of file Extended.php.
|
protected |
Definition at line 64 of file Extended.php.
|
protected |
Definition at line 57 of file Extended.php.
|
protected |
Definition at line 127 of file Extended.php.
|
protected |
Definition at line 113 of file Extended.php.
|
protected |
Definition at line 120 of file Extended.php.
|
protected |
Definition at line 146 of file Extended.php.
|
protected |
Definition at line 50 of file Extended.php.
|
protected |
Definition at line 71 of file Extended.php.
|
protected |
Definition at line 92 of file Extended.php.
|
protected |
Definition at line 78 of file Extended.php.
|
protected |
Definition at line 85 of file Extended.php.
|
protected |
Definition at line 177 of file Extended.php.
|
protected |
Definition at line 160 of file Extended.php.
|
protected |
Definition at line 165 of file Extended.php.