TwistPHP Documentation

getOS

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

getOSGet OS details from a 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 getOS with the example vars
\Twist\Core\Models\UserAgent::getOS($strDeviceKey);