Protected Member Functions | |
_construct () | |
_initUniqueFields () |
Definition at line 35 of file Answer.php.
_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
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 }