Mage_Core_Model_Mysql4_Design_Collection Class Reference

Inheritance diagram for Mage_Core_Model_Mysql4_Design_Collection:

Mage_Core_Model_Mysql4_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 joinStore ()
 addDateFilter ($date=null)
 addStoreFilter ($storeId)

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 28 of file Collection.php.


Member Function Documentation

_construct (  )  [protected]

Initialization here

Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.

Definition at line 30 of file Collection.php.

00031     {
00032         $this->_init('core/design');
00033     }

addDateFilter ( date = null  ) 

Definition at line 42 of file Collection.php.

00043     {
00044         if (is_null($date))
00045             $date = date("Y-m-d");
00046 
00047         $this->getSelect()
00048             ->where('main_table.date_from <= ?', $date)
00049             ->where('main_table.date_to >= ?', $date);
00050 
00051         return $this;
00052     }

addStoreFilter ( storeId  ) 

Definition at line 54 of file Collection.php.

00055     {
00056         $this->getSelect()
00057             ->where('main_table.store_id IN(?)', $storeId);
00058 
00059         return $this;
00060     }

joinStore (  ) 

Definition at line 35 of file Collection.php.

00035                                {
00036         $this->getSelect()
00037             ->join(array('s'=>$this->getTable('core/store')), 's.store_id = main_table.store_id', array('s.name'));
00038 
00039         return $this;
00040     }


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

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