跳到主要內容
文件

類別・函式規格

Mobile

Mobile (全域類別) 類別的公開方法清單。本文件由 Zittme 核心原始碼自動產生。

原始碼:classes/mobile/Mobile.class.php

公開方法

  • function getInstance()
  • Get instance of Mobile class
  • static function isFromMobilePhone()
  • Get current mobile mode
  • static function _isFromMobilePhone()
  • Get current mobile mode
  • static function isMobileCheckByAgent()
  • Detect mobile device by user agent
  • static function isMobilePadCheckByAgent()
  • Check if user-agent is a tablet PC as iPad or Andoid tablet.
  • static function setMobile($ismobile)
  • Set mobile mode
  • static function isMobileEnabled()
  • Check if mobile view is enabled
  • static function isResponsiveViewEnabled()
  • Check if the responsive view is enabled globally.
  • static function getViewMode($module_info = null)
  • Resolve the view mode that applies to the module being displayed.
  • static function isResponsiveView($module_info = null)
  • Check if the responsive view applies to the module being displayed.
  • static function sanitizeViewMode($value)
  • Normalize a submitted view mode before storing it.
  • static function getViewModeLabel($mode)
  • Human-readable label for a view mode, for admin screens.
  • static function isNarrowScreen()
  • Check whether the current screen is narrow enough to use mobile settings.