Public Member Functions | |
__construct ($data=array()) | |
getGiftcertByCode ($giftCode) | |
Protected Attributes | |
$_read | |
$_write |
Definition at line 28 of file Giftcert.php.
__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 }
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 }
$_read [protected] |
Definition at line 30 of file Giftcert.php.
$_write [protected] |
Definition at line 31 of file Giftcert.php.