UA
Zittme\Framework\UA 클래스의 공개 메서드 목록입니다. 이 문서는 Zittme 코어 소스에서 자동 생성되었습니다.
소스: common/framework/UA.php
공개 메서드
static function isMobile(?string $ua = null)- Check whether the current visitor is using a mobile device.
static function isTablet(?string $ua = null)- Check whether the current visitor is using a tablet.
static function isRobot(?string $ua = null)- Check whether the current visitor is a robot.
static function getLocale(?string $header = null)- This method parses the Accept-Language header to guess the browser's default locale.
static function getBrowserInfo(?string $ua = null)- This method parses the User-Agent string to guess what kind of browser it is.
static function encodeFilenameForDownload(string $filename, ?string $ua = null)- This method encodes a UTF-8 filename for downloading in the current visitor's browser.
static function getColorScheme()- Get the current color scheme (auto, light, dark)
static function setColorScheme(string $color_scheme)- Set the color scheme (auto, light, dark)