Public Member Functions | |
setProductFilter ($product) | |
isEnabledFlat () | |
Protected Member Functions | |
_construct () | |
_initSelect () | |
Protected Attributes | |
$_linkTable |
Definition at line 35 of file Collection.php.
_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
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
Reimplemented from Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection.
Definition at line 66 of file Collection.php.
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 }
$_linkTable [protected] |
Definition at line 38 of file Collection.php.