TwistPHP Documentation

getDeviceType

File path: dist/twist/Core/Models/UserAgent.model.php
Namespace: Twist\Core\Models
Extends:

getDeviceTypeGet device type by device key, these are the keys found in the devices.json file

Parameters

Name Type Description
$strDeviceKeystringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strDeviceKey 'foo';

//Call the function getDeviceType with the example vars
\Twist\Core\Models\UserAgent::getDeviceType($strDeviceKey);