Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Type_Configurable_Product_Collection Class Reference

Inheritance diagram for Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Type_Configurable_Product_Collection:

Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection Mage_Catalog_Model_Resource_Eav_Mysql4_Collection_Abstract Mage_Eav_Model_Entity_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 setProductFilter ($product)
 isEnabledFlat ()

Protected Member Functions

 _construct ()
 _initSelect ()

Protected Attributes

 $_linkTable


Detailed Description

Definition at line 35 of file Collection.php.


Member Function Documentation

_construct (  )  [protected]

Initialize resources

Reimplemented from Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection.

Definition at line 39 of file Collection.php.

00040     {
00041         parent::_construct();
00042         $this->_linkTable = $this->getTable('catalog/product_super_link');
00043     }

_initSelect (  )  [protected]

Initialize collection select Redeclared for remove entity_type_id condition in catalog_product_entity we store just products

Returns:
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection

Reimplemented from Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection.

Definition at line 45 of file Collection.php.

00046     {
00047         parent::_initSelect();
00048         $this->getSelect()->join(array('link_table' => $this->_linkTable),
00049             'link_table.product_id=e.entity_id',
00050             array('parent_id')
00051         );
00052     }

isEnabledFlat (  ) 

Retrieve is flat enabled flag Return alvays false if magento run admin

Returns:
bool

Reimplemented from Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection.

Definition at line 66 of file Collection.php.

00067     {
00068         return false;
00069     }

setProductFilter ( product  ) 

Definition at line 54 of file Collection.php.

00055     {
00056         $this->getSelect()->where('link_table.parent_id=?', (int) $product->getId());
00057         return $this;
00058     }


Member Data Documentation

$_linkTable [protected]

Definition at line 38 of file Collection.php.


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

Generated on Sat Jul 4 17:23:45 2009 for Magento by  doxygen 1.5.8