Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

Mobile

Danh sách các phương thức công khai của lớp Mobile (lớp toàn cục). Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: classes/mobile/Mobile.class.php

Phương thức công khai

  • 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.