Mage_Rating_Model_Mysql4_Rating_Entity Class Reference

Inheritance diagram for Mage_Rating_Model_Mysql4_Rating_Entity:

Mage_Core_Model_Mysql4_Abstract Mage_Core_Model_Resource_Abstract

List of all members.

Public Member Functions

 _construct ()
 getIdByCode ($entityCode)


Detailed Description

Definition at line 35 of file Entity.php.


Member Function Documentation

_construct (  ) 

Resource initialization

Reimplemented from Mage_Core_Model_Resource_Abstract.

Definition at line 37 of file Entity.php.

00038     {
00039         $this->_init('rating/rating_entity', 'entity_id');
00040     }

getIdByCode ( entityCode  ) 

Definition at line 42 of file Entity.php.

00043     {
00044         $read = $this->_getReadAdapter();
00045         $select = $read->select();
00046         $select->from($this->getTable('rating_entity'), $this->getIdFieldName())
00047             ->where('entity_code = ?', $entityCode);
00048         return $read->fetchOne($select);
00049     }


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

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