Mage_Sales_Model_Mysql4_Giftcert Class Reference

List of all members.

Public Member Functions

 __construct ($data=array())
 getGiftcertByCode ($giftCode)

Protected Attributes

 $_read
 $_write


Detailed Description

Definition at line 28 of file Giftcert.php.


Constructor & Destructor Documentation

__construct ( data = array()  ) 

Definition at line 33 of file Giftcert.php.

00034     {
00035         $this->_read = Mage::getSingleton('core/resource')->getConnection('sales_read');
00036         $this->_write = Mage::getSingleton('core/resource')->getConnection('sales_write');
00037     }


Member Function Documentation

getGiftcertByCode ( giftCode  ) 

Definition at line 39 of file Giftcert.php.

00040     {
00041         $giftTable = Mage::getSingleton('core/resource')->getTableName('sales/giftcert');
00042         $result = $this->_read->fetchRow("select * from ".$giftTable." where giftcert_code=?", $giftCode);
00043         return $result;
00044     }


Member Data Documentation

$_read [protected]

Definition at line 30 of file Giftcert.php.

$_write [protected]

Definition at line 31 of file Giftcert.php.


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

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