| @@ 48-58 (lines=11) @@ | ||
| 45 | * @param string $type the gift card type in this set (virtual, physical, and combined) |
|
| 46 | * @return int|null |
|
| 47 | */ |
|
| 48 | protected function _getGiftCardType($type) |
|
| 49 | { |
|
| 50 | switch ($type) { |
|
| 51 | case self::GIFTCARD_PHYSICAL: |
|
| 52 | return Enterprise_GiftCard_Model_Giftcard::TYPE_PHYSICAL; |
|
| 53 | case self::GIFTCARD_COMBINED: |
|
| 54 | return Enterprise_GiftCard_Model_Giftcard::TYPE_COMBINED; |
|
| 55 | default: |
|
| 56 | return Enterprise_GiftCard_Model_Giftcard::TYPE_VIRTUAL; |
|
| 57 | } |
|
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * extract the giftcard tender code from the DOMNOdeList object |
|
| @@ 256-266 (lines=11) @@ | ||
| 253 | * @see Enterprise_GiftCard_Model_Giftcard |
|
| 254 | * @return int|null |
|
| 255 | */ |
|
| 256 | protected function _getGiftCardType($type) |
|
| 257 | { |
|
| 258 | switch ($type) { |
|
| 259 | case self::GIFTCARD_PHYSICAL: |
|
| 260 | return Enterprise_GiftCard_Model_Giftcard::TYPE_PHYSICAL; |
|
| 261 | case self::GIFTCARD_COMBINED: |
|
| 262 | return Enterprise_GiftCard_Model_Giftcard::TYPE_COMBINED; |
|
| 263 | default: |
|
| 264 | return Enterprise_GiftCard_Model_Giftcard::TYPE_VIRTUAL; |
|
| 265 | } |
|
| 266 | } |
|
| 267 | /** |
|
| 268 | * extract the giftcard tender code from the DOMNOdeList object get its map value |
|
| 269 | * from the config and then return the actual constant to the know magento gift card sets |
|