• Модуль: conversion
  • Путь к файлу: ~/bitrix/modules/conversion/lib/internals/mobiledetect.php
  • Класс: BitrixConversionInternalsfor
  • Вызов: for::__call
public function __call($name, $arguments)
    {
        // make sure the name starts with 'is', otherwise
        if (mb_substr($name, 0, 2) !== 'is') {
            throw new BadMethodCallException("No such method exists: $name");
        }

        $this->setDetectionType(self::DETECTION_TYPE_MOBILE);

	$key = mb_substr($name, 2);

        return $this->matchUAAgainstKey($key);
    }