Mage_Poll_Model_Mysql4_Poll_Answer Class Reference

Inheritance diagram for Mage_Poll_Model_Mysql4_Poll_Answer:

Mage_Core_Model_Mysql4_Abstract Mage_Core_Model_Resource_Abstract

List of all members.

Protected Member Functions

 _construct ()
 _initUniqueFields ()


Detailed Description

Definition at line 35 of file Answer.php.


Member Function Documentation

_construct (  )  [protected]

Resource initialization

Reimplemented from Mage_Core_Model_Resource_Abstract.

Definition at line 37 of file Answer.php.

00038     {
00039         $this->_init('poll/poll_answer', 'answer_id');
00040     }

_initUniqueFields (  )  [protected]

Initialize unique fields

Returns:
Mage_Core_Model_Mysql4_Abstract

Reimplemented from Mage_Core_Model_Mysql4_Abstract.

Definition at line 47 of file Answer.php.

00048     {
00049         $this->_uniqueFields = array(array(
00050             'field' => array('answer_title', 'poll_id'),
00051             'title' => Mage::helper('poll')->__('Answer with the same title in this poll')
00052         ));
00053         return $this;
00054     }


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