- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_SmartphoneUserAgent.php
r22206 r22567 27 27 * @auther Yu Nobira 28 28 */ 29 class SC_SmartphoneUserAgent { 29 class SC_SmartphoneUserAgent 30 { 30 31 31 32 /** … … 35 36 * @return boolean 36 37 */ 37 function isSmartphone() { 38 function isSmartphone() 39 { 38 40 $nu = new Net_UserAgent_Mobile(); 39 41 // SPでかつPC表示OFFの場合 … … 46 48 * @return boolean 47 49 */ 48 function isNonSmartphone() { 50 function isNonSmartphone() 51 { 49 52 return !SC_SmartphoneUserAgent_Ex::isSmartphone(); 50 53 } … … 55 58 * @return string 56 59 */ 57 function getSmartphonePcFlag() { 60 function getSmartphonePcFlag() 61 { 58 62 $_SESSION['pc_disp'] = empty($_SESSION['pc_disp']) ? false : $_SESSION['pc_disp']; 59 63 return $_SESSION['pc_disp']; … … 63 67 * PC表示ON 64 68 */ 65 function setPcDisplayOn() { 69 function setPcDisplayOn() 70 { 66 71 $_SESSION['pc_disp'] = true; 67 72 } … … 70 75 * PC表示OFF 71 76 */ 72 function setPcDisplayOff() { 77 function setPcDisplayOff() 78 { 73 79 $_SESSION['pc_disp'] = false; 74 80 }
Note: See TracChangeset
for help on using the changeset viewer.