Method | Description | |
---|---|---|
__construct ( string $version ) | Create a new data collection for the specified version | |
addDefaultBrowser ( string $src ) : |
Load the file for the default browser | |
addDefaultProperties ( string $src ) : |
Load the file for the default properties | |
addDevicesFile ( string $src ) : |
Load a devices.json file and parse it into the platforms data array | |
addEnginesFile ( string $src ) : |
Load a engines.json file and parse it into the platforms data array | |
addPlatformsFile ( string $src ) : |
Load a platforms.json file and parse it into the platforms data array | |
addSourceFile ( string $src ) : |
Load a JSON file, parse it's JSON and add it to our divisions list | |
checkProperty ( string $key, array $properties ) : boolean | ||
getDefaultBrowser ( ) : |
Get the divisions array containing UA data | |
getDefaultProperties ( ) : |
Get the divisions array containing UA data | |
getDevice ( string $device ) : |
Get a single engine data array | |
getDevices ( ) : |
Get the array of engine data | |
getDivisions ( ) : |
Get the divisions array containing UA data | |
getEngine ( string $engine ) : |
Get a single engine data array | |
getEngines ( ) : |
Get the array of engine data | |
getGenerationDate ( ) : DateTime | Get the generation DateTime object | |
getLogger ( ) : Psr\Log\LoggerInterface | ||
getPlatform ( string $platform ) : |
Get a single platform data array | |
getPlatforms ( ) : |
Get the array of platform data | |
getVersion ( ) : string | Get the version string identifier | |
setLogger ( Psr\Log\LoggerInterface $logger ) : |
||
sortDivisions ( ) : |
Sort the divisions (if they haven't already been sorted) |
Method | Description | |
---|---|---|
checkDeviceData ( array $properties, string $message ) | checks if device properties are set inside a properties array | |
checkEngineData ( array $properties, string $message ) | checks if platform properties are set inside a properties array | |
checkPlatformData ( array $properties, string $message ) | checks if platform properties are set inside a properties array | |
loadFile ( string $src ) : array |
public __construct ( string $version ) | ||
$version | string |
public addDefaultBrowser ( string $src ) : |
||
$src | string | Name of the file |
return |
public addDefaultProperties ( string $src ) : |
||
$src | string | Name of the file |
return |
public addDevicesFile ( string $src ) : |
||
$src | string | Name of the file |
return |
public addEnginesFile ( string $src ) : |
||
$src | string | Name of the file |
return |
public addPlatformsFile ( string $src ) : |
||
$src | string | Name of the file |
return |
public addSourceFile ( string $src ) : |
||
$src | string | Name of the file |
return |
public getDefaultBrowser ( ) : |
||
return |
public getDefaultProperties ( ) : |
||
return |
public getDevices ( ) : |
||
return |
public getDivisions ( ) : |
||
return |
public getEngines ( ) : |
||
return |
public getGenerationDate ( ) : DateTime | ||
return | DateTime |
public getLogger ( ) : Psr\Log\LoggerInterface | ||
return | Psr\Log\LoggerInterface | $logger |
public getPlatform ( string $platform ) : |
||
$platform | string | |
return |
public getPlatforms ( ) : |
||
return |
public getVersion ( ) : string | ||
return | string |
public setLogger ( Psr\Log\LoggerInterface $logger ) : |
||
$logger | Psr\Log\LoggerInterface | |
return |
public sortDivisions ( ) : |
||
return |