123456789101112131415161718192021222324252627282930 |
- <?php
- namespace refill;
- use mtopcard;
- use Log;
- abstract class IRefillPhone extends IRefill
- {
- public function __construct($cfgs)
- {
- parent::__construct($cfgs);
- foreach ($cfgs['card_type'] as $ctype)
- {
- $ctype = strtolower($ctype);
- if ($ctype == "chinamobile") {
- $this->mCardType[] = mtopcard\ChinaMobileCard;
- } elseif ($ctype == "chinaunicom") {
- $this->mCardType[] = mtopcard\ChinaUnicomCard;
- } elseif($ctype == "chinatelecom") {
- $this->mCardType[] = mtopcard\ChinaTelecomCard;
- } else {
- Log::record("Phone Provider has no name", Log::ERR);
- }
- }
- }
- }
|