Changeset 21438 for branches


Ignore:
Timestamp:
2012/02/03 19:50:32 (12 years ago)
Author:
shutta
Message:

#1612 (不要な関数の削除)
SC_Mobile_UserAgent::isMobile()
SC_Mobile_UserAgent::isNonMobile()
を削除。
関連チケット #1527(端末種別の判別ルーチンの統一)

File:
1 edited

Legend:

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

    r21420 r21438  
    9898 
    9999    /** 
    100      * EC-CUBE がサポートする携帯キャリアかどうかを判別する。 
    101      * 
    102      * @return boolean サポートしている場合は true、それ以外の場合は false を返す。 
    103      */ 
    104     function isMobile() { 
    105         $objAgent =& Net_UserAgent_Mobile::singleton(); 
    106         if (Net_UserAgent_Mobile::isError($objAgent)) { 
    107             return false; 
    108         } else { 
    109             return $objAgent->isDoCoMo() || $objAgent->isEZweb() || $objAgent->isVodafone(); 
    110         } 
    111     } 
    112  
    113     /** 
    114      * EC-CUBE がサポートする携帯キャリアかどうかを判別する。 
    115      * 
    116      * @return boolean 携帯端末ではない場合は true、それ以外の場合は false を返す。 
    117      */ 
    118     function isNonMobile() { 
    119         /** 
    120          * ここは、自クラスのメソッドの逆関数なので、 
    121          * EC-CUBE標準規約/リファクタリングガイドラインの 
    122          * SC_Display_Ex::detectDevice()への統一からは除外。 
    123          */ 
    124         return !SC_MobileUserAgent_Ex::isMobile(); 
    125     } 
    126  
    127     /** 
    128100     * EC-CUBE がサポートする携帯端末かどうかを判別する。 
    129101     * 
Note: See TracChangeset for help on using the changeset viewer.