Jump to: navigation, search

Mobile

Contents

Variables

  • $devices: An array of possible devices that could connect to the site. 


Methods

__callStatic()

  • Parameters
    • Required $name: The name of the method being called.
    • Required $arguments: The arguments for that method.


This method is used as a catch all. It's purpose is to see if a valid device name is in the name provided.

is_mobile()

This method checks to see if the requesting device is mobile or not.

get_device()

This method tells you the device that is connecting.

is_device()

This method checks if the device connecting is in the list of devices.