Mage_Poll_Model_Mysql4_Poll_Answer_Collection Class Reference

Inheritance diagram for Mage_Poll_Model_Mysql4_Poll_Answer_Collection:

Mage_Core_Model_Mysql4_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 _construct ()
 addPollFilter ($pollId)
 countPercent ($pollObject)


Detailed Description

Definition at line 32 of file Collection.php.


Member Function Documentation

_construct (  ) 

Initialization here

Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.

Definition at line 34 of file Collection.php.

00035     {
00036         $this->_init('poll/poll_answer');
00037     }

addPollFilter ( pollId  ) 

Definition at line 39 of file Collection.php.

00040     {
00041         $this->getSelect()->where("poll_id IN(?) ", $pollId);
00042         return $this;
00043     }

countPercent ( pollObject  ) 

Definition at line 45 of file Collection.php.

00046     {
00047         if( !$pollObject ) {
00048             return;
00049         } else {
00050             foreach( $this->getItems() as $answer ) {
00051                 $answer->countPercent($pollObject);
00052             }
00053         }
00054         return $this;
00055     }


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

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