CI_User_agent::is_mobile PHP Метод

is_mobile() публичный Метод

Is Mobile
public is_mobile ( string $key = NULL ) : boolean
$key string
Результат boolean
    public function is_mobile($key = NULL)
    {
        if (!$this->is_mobile) {
            return FALSE;
        }
        // No need to be specific, it's a mobile
        if ($key === NULL) {
            return TRUE;
        }
        // Check for a specific robot
        return isset($this->mobiles[$key]) && $this->mobile === $this->mobiles[$key];
    }