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