Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Grid Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Grid:

Mage_Adminhtml_Block_Widget_Grid Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getCurrentUrl ($params=array())
 getRowUrl ($row)

Protected Member Functions

 _prepareCollection ()
 _prepareColumns ()

Protected Attributes

 $_defaultLimit = 200


Detailed Description

Definition at line 34 of file Grid.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Varien_Object.

Definition at line 38 of file Grid.php.

00039     {
00040         parent::__construct();
00041         $this->setId('extensions_custom_edit_grid');
00042         $this->setUseAjax(true);
00043     }


Member Function Documentation

_prepareCollection (  )  [protected]

Prepare grid collection object

Returns:
this

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 45 of file Grid.php.

00046     {
00047         // take a look at Mage_Adminhtml_Model_Extension_Collection_Abstract
00048         $collection = Mage::getSingleton('adminhtml/extension_collection');
00049         $this->setCollection($collection);
00050         return parent::_prepareCollection();
00051     }

_prepareColumns (  )  [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 53 of file Grid.php.

00054     {
00055         $baseUrl = $this->getUrl();
00056 
00057         $this->addColumn('filename', array(
00058             'header'    => Mage::helper('adminhtml')->__('Package'),
00059             'index'     => 'filename',
00060         ));
00061 
00062         return parent::_prepareColumns();
00063     }

getCurrentUrl ( params = array()  ) 

Reimplemented from Mage_Adminhtml_Block_Widget.

Definition at line 65 of file Grid.php.

00066     {
00067         return $this->getUrl('*/*/grid', array('_current'=>true));
00068     }

getRowUrl ( row  ) 

Definition at line 70 of file Grid.php.

00071     {
00072         return $this->getUrl('*/*/load') . '?id=' . urlencode($row->getFilenameId());
00073     }


Member Data Documentation

$_defaultLimit = 200 [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 36 of file Grid.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:49 2009 for Magento by  doxygen 1.5.8