Mage_Tag_Model_Mysql4_Popular_Collection Class Reference

Inheritance diagram for Mage_Tag_Model_Mysql4_Popular_Collection:

Mage_Core_Model_Mysql4_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 joinFields ($storeId=0)
 load ($printQuery=false, $logQuery=false)
 limit ($limit)

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 35 of file Collection.php.


Member Function Documentation

_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

Returns:
Varien_Data_Collection_Db

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     }


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

Generated on Sat Jul 4 17:24:53 2009 for Magento by  doxygen 1.5.8