Changeset 21773


Ignore:
Timestamp:
2012/04/18 19:22:07 (12 years ago)
Author:
h_yoshimoto
Message:

#1612 モジュールで使用している関数を戻します

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_MobileUserAgent.php

    r21526 r21773  
    123123        } 
    124124    } 
    125  
     125     
     126    /** 
     127     * EC-CUBE がサポートする携帯キャリアかどうかを判別する。 (モジュールで使用) 
     128     *  
     129     * @return boolean サポートしている場合は true、それ以外の場合は false を返す。  
     130     */ 
     131    function isMobile() {  
     132        $objAgent =& Net_UserAgent_Mobile::singleton();  
     133        if (Net_UserAgent_Mobile::isError($objAgent)) {  
     134            return false;  
     135        } else {  
     136            return $objAgent->isDoCoMo() || $objAgent->isEZweb() || $objAgent->isVodafone();  
     137        }  
     138    } 
    126139} 
Note: See TracChangeset for help on using the changeset viewer.