Changeset 10123 for OpenPNE3/trunk/lib/model/NaviPeer.php
- Timestamp:
- Jan 14, 2009, 5:49:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE3/trunk/lib/model/NaviPeer.php
r10085 r10123 27 27 } 28 28 29 public static function retrieveTypes( )29 public static function retrieveTypes($isMobile) 30 30 { 31 31 $result = array(); 32 32 33 $defaultTypes = array( 34 'insecure_global', 35 'secure_global', 36 'default', 37 'friend', 38 'community', 39 ); 33 if ($isMobile) 34 { 35 $defaultTypes = array( 36 'mobile_global', 37 'mobile_home', 38 'mobile_home_side', 39 'mobile_friend', 40 'mobile_community', 41 ); 42 } 43 else 44 { 45 $defaultTypes = array( 46 'insecure_global', 47 'secure_global', 48 'default', 49 'friend', 50 'community', 51 ); 52 } 40 53 41 54 $c = new Criteria(); … … 45 58 $c->addAscendingOrderByColumn(self::SORT_ORDER); 46 59 $stmt = self::doSelectStmt($c); 47 while ($res = $stmt->fetchColumn(1)) { 60 while ($res = $stmt->fetchColumn(1)) 61 { 48 62 $result[] = $res; 49 63 }
Note: See TracChangeset
for help on using the changeset viewer.