Public Member Functions | |
joinFields ($storeId=0) | |
load ($printQuery=false, $logQuery=false) | |
limit ($limit) | |
Protected Member Functions | |
_construct () |
Definition at line 35 of file Collection.php.
_construct | ( | ) | [protected] |
Initialization here
Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.
Definition at line 38 of file Collection.php.
00039 { 00040 $this->_init('tag/tag'); 00041 }
joinFields | ( | $ | storeId = 0 |
) |
Definition at line 43 of file Collection.php.
00044 { 00045 $this->getSelect() 00046 ->reset() 00047 ->from(array('main_table' => $this->getTable('tag/summary'))) 00048 ->join( 00049 array('tag' => $this->getTable('tag/tag')), 00050 'tag.tag_id = main_table.tag_id AND tag.status = '.Mage_Tag_Model_Tag::STATUS_APPROVED) 00051 ->where('main_table.store_id = ?', $storeId) 00052 ->order('popularity desc'); 00053 00054 return $this; 00055 }
limit | ( | $ | limit | ) |
Definition at line 66 of file Collection.php.
00067 { 00068 $this->getSelect()->limit($limit); 00069 return $this; 00070 }
load | ( | $ | printQuery = false , |
|
$ | logQuery = false | |||
) |
Load data
Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.
Definition at line 57 of file Collection.php.
00058 { 00059 if ($this->isLoaded()) { 00060 return $this; 00061 } 00062 parent::load($printQuery, $logQuery); 00063 return $this; 00064 }