Class Mage_Adminhtml_Block_Widget_Grid
Adminhtml grid widget block
- Varien_Object
- Mage_Core_Block_Abstract
- Mage_Core_Block_Template
- Mage_Adminhtml_Block_Template
- Mage_Adminhtml_Block_Widget
- Mage_Adminhtml_Block_Widget_Grid
Direct known subclasses
Mage_Adminhtml_Block_Api_Grid_Role, Mage_Adminhtml_Block_Api_Role_Grid_User, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Crosssell, Mage_Adminhtml_Block_Tag_Grid_Pending, Mage_Adminhtml_Block_Tag_Grid_Products, Mage_Adminhtml_Block_Tag_Product_Grid, Mage_Adminhtml_Block_Tag_Tag_Grid, Mage_Adminhtml_Block_Tax_Class_Grid, Mage_Adminhtml_Block_Tax_Rate_Grid, Mage_Adminhtml_Block_Tax_Rule_Grid, Mage_Adminhtml_Block_Urlrewrite_Grid, Mage_Api2_Block_Adminhtml_Attribute_Grid, Mage_Api2_Block_Adminhtml_Permissions_User_Edit_Tab_Roles, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Related, Mage_Api2_Block_Adminhtml_Roles_Grid, Mage_Api2_Block_Adminhtml_Roles_Tab_Users, Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option_Search_Grid, Mage_Connect_Block_Adminhtml_Extension_Custom_Edit_Tab_Grid, Mage_Eav_Block_Adminhtml_Attribute_Grid_Abstract, Mage_GoogleBase_Block_Adminhtml_Items_Item, Mage_GoogleBase_Block_Adminhtml_Items_Product, Mage_GoogleBase_Block_Adminhtml_Types_Grid, Mage_ImportExport_Block_Adminhtml_Export_Filter, Mage_Index_Block_Adminhtml_Process_Grid, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config_Grid, Mage_Oauth_Block_Adminhtml_Oauth_Admin_Token_Grid, Mage_Oauth_Block_Adminhtml_Oauth_AuthorizedTokens_Grid, Mage_Oauth_Block_Adminhtml_Oauth_Consumer_Grid, Mage_Paypal_Block_Adminhtml_Settlement_Report_Grid, Mage_Sales_Block_Adminhtml_Billing_Agreement_Grid, Mage_Sales_Block_Adminhtml_Recurring_Profile_Grid, Mage_Sales_Block_Adminhtml_Recurring_Profile_View_Tab_Orders, Mage_Widget_Block_Adminhtml_Widget_Instance_Grid, Mage_XmlConnect_Block_Adminhtml_History_Grid, Mage_XmlConnect_Block_Adminhtml_Mobile_Edit_Tab_Submission_History, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Group, Mage_Xmlconnect_Block_Adminhtml_Mobile_Grid, Mage_XmlConnect_Block_Adminhtml_Queue_Grid, Mage_XmlConnect_Block_Adminhtml_Template_Grid, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Tag, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Tag_Customer, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Upsell, Mage_Adminhtml_Block_Catalog_Product_Grid, Mage_Adminhtml_Block_Catalog_Product_Widget_Chooser, Mage_Adminhtml_Block_Catalog_Search_Grid, Mage_Adminhtml_Block_Api_User_Edit_Tab_Roles, Mage_Adminhtml_Block_Checkout_Agreement_Grid, Mage_Adminhtml_Block_Cms_Block_Grid, Mage_Adminhtml_Block_Cms_Block_Widget_Chooser, Mage_Adminhtml_Block_Cms_Page_Grid, Mage_Adminhtml_Block_Cms_Page_Widget_Chooser, Mage_Adminhtml_Block_Customer_Edit_Tab_Cart, Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter_Grid, Mage_Adminhtml_Block_Customer_Edit_Tab_Orders, Mage_Adminhtml_Block_Customer_Edit_Tab_Tag, Mage_Adminhtml_Block_Customer_Edit_Tab_Tags, Mage_Adminhtml_Block_Api_User_Grid, Mage_Adminhtml_Block_Customer_Edit_Tab_View_Cart, Mage_Adminhtml_Block_Customer_Edit_Tab_View_Orders, Mage_Adminhtml_Block_Customer_Edit_Tab_View_Wishlist, Mage_Adminhtml_Block_Customer_Edit_Tab_Wishlist, Mage_Adminhtml_Block_Customer_Grid, Mage_Adminhtml_Block_Customer_Group_Grid, Mage_Adminhtml_Block_Customer_Online_Grid, Mage_Adminhtml_Block_Dashboard_Grid, Mage_Adminhtml_Block_Newsletter_Problem_Grid, Mage_Adminhtml_Block_Newsletter_Queue_Grid, Mage_Adminhtml_Block_Backup_Grid, Mage_Adminhtml_Block_Newsletter_Subscriber_Grid, Mage_Adminhtml_Block_Newsletter_Template_Grid, Mage_Adminhtml_Block_Notification_Grid, Mage_Adminhtml_Block_Permissions_Grid_Role, Mage_Adminhtml_Block_Permissions_Grid_User, Mage_Adminhtml_Block_Permissions_Role_Grid_User, Mage_Adminhtml_Block_Permissions_User_Edit_Tab_Roles, Mage_Adminhtml_Block_Permissions_User_Grid, Mage_Adminhtml_Block_Poll_Edit_Tab_Answers_Grid, Mage_Adminhtml_Block_Poll_Grid, Mage_Adminhtml_Block_Cache_Grid, Mage_Adminhtml_Block_Promo_Catalog_Grid, Mage_Adminhtml_Block_Promo_Quote_Edit_Tab_Coupons_Grid, Mage_Adminhtml_Block_Promo_Quote_Grid, Mage_Adminhtml_Block_Promo_Widget_Chooser, Mage_Adminhtml_Block_Promo_Widget_Chooser_Sku, Mage_Adminhtml_Block_Rating_Grid, Mage_Adminhtml_Block_Report_Grid, Mage_Adminhtml_Block_Report_Grid_Abstract, Mage_Adminhtml_Block_Report_Grid_Shopcart, Mage_Adminhtml_Block_Report_Product_Downloads_Grid, Mage_Adminhtml_Block_Catalog_Category_Tab_Product, Mage_Adminhtml_Block_Report_Product_Grid, Mage_Adminhtml_Block_Report_Product_Lowstock_Grid, Mage_Adminhtml_Block_Report_Refresh_Statistics_Grid, Mage_Adminhtml_Block_Report_Review_Customer_Grid, Mage_Adminhtml_Block_Report_Review_Detail_Grid, Mage_Adminhtml_Block_Report_Review_Product_Grid, Mage_Adminhtml_Block_Report_Search_Grid, Mage_Adminhtml_Block_Report_Tag_Customer_Detail_Grid, Mage_Adminhtml_Block_Report_Tag_Customer_Grid, Mage_Adminhtml_Block_Report_Tag_Popular_Detail_Grid, Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Grid, Mage_Adminhtml_Block_Report_Tag_Popular_Grid, Mage_Adminhtml_Block_Report_Tag_Product_Detail_Grid, Mage_Adminhtml_Block_Report_Tag_Product_Grid, Mage_Adminhtml_Block_Report_Wishlist_Grid, Mage_Adminhtml_Block_Review_Grid, Mage_Adminhtml_Block_Sales_Creditmemo_Grid, Mage_Adminhtml_Block_Sales_Invoice_Grid, Mage_Adminhtml_Block_Sales_Order_Create_Customer_Grid, Mage_Adminhtml_Block_Sales_Order_Create_Search_Grid, Mage_Adminhtml_Block_Sales_Order_Grid, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Alerts_Price, Mage_Adminhtml_Block_Sales_Order_Status_Grid, Mage_Adminhtml_Block_Sales_Order_View_Tab_Creditmemos, Mage_Adminhtml_Block_Sales_Order_View_Tab_Invoices, Mage_Adminhtml_Block_Sales_Order_View_Tab_Shipments, Mage_Adminhtml_Block_Sales_Shipment_Grid, Mage_Adminhtml_Block_Sales_Transactions_Detail_Grid, Mage_Adminhtml_Block_Sales_Transactions_Grid, Mage_Adminhtml_Block_Shipping_Carrier_Tablerate_Grid, Mage_Adminhtml_Block_Sitemap_Grid, Mage_Adminhtml_Block_System_Convert_Gui_Grid, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Alerts_Stock, Mage_Adminhtml_Block_System_Convert_Profile_Edit_Tab_History, Mage_Adminhtml_Block_System_Convert_Profile_Grid, Mage_Adminhtml_Block_System_Design_Grid, Mage_Adminhtml_Block_System_Email_Template_Grid, Mage_Adminhtml_Block_System_Store_Grid, Mage_Adminhtml_Block_System_Variable_Grid, Mage_Adminhtml_Block_Tag_Assigned_Grid, Mage_Adminhtml_Block_Tag_Customer_Grid, Mage_Adminhtml_Block_Tag_Grid_All, Mage_Adminhtml_Block_Tag_Grid_CustomersIndirect known subclasses
Mage_Adminhtml_Block_Catalog_Product_Attribute_Grid, Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Reviews, Mage_Adminhtml_Block_Report_Customer_Accounts_Grid, Mage_Adminhtml_Block_Report_Customer_Orders_Grid, Mage_Adminhtml_Block_Report_Customer_Totals_Grid, Mage_Adminhtml_Block_Report_Product_Sold_Grid, Mage_Adminhtml_Block_Report_Product_Viewed_Grid, Mage_Adminhtml_Block_Report_Sales_Bestsellers_Grid, Mage_Adminhtml_Block_Report_Sales_Coupons_Grid, Mage_Adminhtml_Block_Report_Sales_Invoiced_Grid, Mage_Adminhtml_Block_Report_Sales_Refunded_Grid, Mage_Adminhtml_Block_Report_Sales_Sales_Grid, Mage_Adminhtml_Block_Customer_Edit_Tab_Reviews, Mage_Adminhtml_Block_Report_Sales_Shipping_Grid, Mage_Adminhtml_Block_Report_Sales_Tax_Grid, Mage_Adminhtml_Block_Report_Shopcart_Abandoned_Grid, Mage_Adminhtml_Block_Report_Shopcart_Customer_Grid, Mage_Adminhtml_Block_Report_Shopcart_Product_Grid, Mage_Adminhtml_Block_Review_Product_Grid, Mage_Adminhtml_Block_Sales_Order_View_Tab_Transactions, Mage_Adminhtml_Block_Sales_Transactions_Child_Grid, Mage_Adminhtml_Block_Urlrewrite_Product_Grid, Mage_Sales_Block_Adminhtml_Billing_Agreement_View_Tab_Orders, Mage_Adminhtml_Block_Dashboard_Orders_Grid, Mage_Sales_Block_Adminhtml_Customer_Edit_Tab_Agreement, Mage_Sales_Block_Adminhtml_Customer_Edit_Tab_Recurring_Profile, Mage_Adminhtml_Block_Dashboard_Searches_Last, Mage_Adminhtml_Block_Dashboard_Searches_Top, Mage_Adminhtml_Block_Dashboard_Tab_Customers_Most, Mage_Adminhtml_Block_Dashboard_Tab_Customers_Newest, Mage_Adminhtml_Block_Dashboard_Tab_Products_Ordered, Mage_Adminhtml_Block_Dashboard_Tab_Products_ViewedCategory: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Adminhtml/Block/Widget/Grid.php
public
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
Varien_Data_Collection
|
|
public
|
|
public
|
|
public
|
#
addColumnAfter( string $columnId, array|Varien_Object $column, string $after )
Add column to grid after specified column. |
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
Varien_Object
|
|
public
array
|
|
protected
|
|
protected
|
|
protected
|
#
_setCollectionOrder(
Sets sorting order by some column |
protected
this
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
unknown
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array|false
|
|
public
|
|
public
array
|
|
protected
string
|
#
_getRssUrl( string $url )
Returns url for RSS Can be overloaded in descendant classes to perform custom changes to url passed to addRssList() |
public
|
|
public
string
|
|
protected
string
|
|
protected
array
|
|
protected
array
|
|
public
|
#
_exportIterateCollection( string $callback, array $args )
Iterate collection and call callback method per item For callback method first argument always is item object |
protected
|
|
public
array
|
|
public
string
|
|
public
|
|
protected
|
#
_exportExcelItem( Varien_Object $item, Varien_Io_File $adapter, Varien_Convert_Parser_Xml_Excel $parser = null )
Write item data to Excel 2003 XML export file |
public
string
|
#
getExcelFile( mixed $sheetName = '' )
Retrieve a file container array by grid data as MS Excel 2003 XML Document |
public
string
|
|
public
|
|
public
string
|
#
getAbsoluteGridUrl( array $params = array() )
Grid url getter Version of getGridUrl() but with parameters |
public
mixed
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
Varien_Object
|
|
public
|
|
public
boolean
|
|
public
|
|
public
Varien_Object
|
|
public
array
|
|
public
boolean
|
|
public
unknown
|
|
public
integer|boolean
|
#
getRowspan( Varien_Object $item,
Retrieve rowspan number |
public
boolean|
|
|
public
array
|
|
public
array
|
|
public
boolean
|
#
shouldRenderCell( Varien_Object $item,
Check whether should render cell |
public
boolean
|
#
shouldRenderEmptyCell( Varien_Object $item,
Check whether should render empty cell |
public
integer
|
|
public
string
|
|
public
|
|
public
string
|
_addBreadcrumb(),
getButtonHtml(),
getCurrentUrl(),
getGlobalIcon(),
getHtmlId(),
getId()
|
_getUrlModelClass(),
_toHtml(),
getFormKey(),
isOutputEnabled()
|
XML_PATH_DEBUG_TEMPLATE_HINTS,
XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS,
XML_PATH_TEMPLATE_ALLOW_SYMLINK
|
CACHE_GROUP
|
protected
array
|
$_columns | array() |
#
Columns array |
protected
mixed
|
$_lastColumnId |
|
|
protected
Varien_Data_Collection
|
$_collection | null |
#
Collection object |
protected
string
|
$_varNameLimit | 'limit' |
#
Page and sorting var names |
protected
string
|
$_varNamePage | 'page' |
|
protected
string
|
$_varNameSort | 'sort' |
|
protected
string
|
$_varNameDir | 'dir' |
|
protected
string
|
$_varNameFilter | 'filter' |
|
protected
integer
|
$_defaultLimit | 20 |
|
protected
integer
|
$_defaultPage | 1 |
|
protected
boolean
|
$_defaultSort | false |
|
protected
string
|
$_defaultDir | 'desc' |
|
protected
array
|
$_defaultFilter | array() |
|
protected
boolean
|
$_isExport | false |
#
Export flag |
protected
sting|null
|
$_emptyText |
|
#
Empty grid text |
protected
sting|null
|
$_emptyTextCss | 'a-center' |
#
Empty grid text CSS class |
protected
boolean
|
$_pagerVisibility | true |
#
Pager visibility |
protected
boolean
|
$_headersVisibility | true |
#
Column headers visibility |
protected
boolean
|
$_filterVisibility | true |
#
Filter visibility |
protected
boolean
|
$_messageBlockVisibility | false |
#
Massage block visibility |
protected
boolean
|
$_saveParametersInSession | false |
|
protected
boolean
|
$_countTotals | false |
#
Count totals |
protected
boolean
|
$_countSubTotals | false |
#
Count subtotals |
protected
Varien_Object
|
$_varTotals |
|
#
Totals |
protected
array
|
$_subtotals | array() |
#
SubTotals |
protected
array
|
$_exportTypes | array() |
#
Grid export types |
protected
integer
|
$_exportPageSize | 1000 |
#
Rows per page for import |
protected
string
|
$_massactionIdField | null |
#
Massaction row id field |
protected
string
|
$_massactionIdFilter | null |
#
Massaction row id filter |
protected
string
|
$_massactionBlockName | 'adminhtml/widget_grid_massaction' |
#
Massaction block name |
protected
array
|
$_rssLists | array() |
#
RSS list |
protected
array
|
$_columnsOrder | array() |
#
Columns view order |
protected
array
|
$_groupedColumn | array() |
#
Columns to group by |
protected
string
|
$_emptyCellLabel | '' |
#
Label for empty cell |
$_allowSymlinks,
$_baseUrl,
$_jsUrl,
$_showTemplateHints,
$_showTemplateHintsBlocks,
$_template,
$_viewDir,
$_viewVars
|