Метод | Описание | |
---|---|---|
__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) |
Метод | Описание | |
---|---|---|
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 |
Результат |
public addDefaultProperties ( string $src ) : |
||
$src | string | Name of the file |
Результат |
public addDevicesFile ( string $src ) : |
||
$src | string | Name of the file |
Результат |
public addEnginesFile ( string $src ) : |
||
$src | string | Name of the file |
Результат |
public addPlatformsFile ( string $src ) : |
||
$src | string | Name of the file |
Результат |
public addSourceFile ( string $src ) : |
||
$src | string | Name of the file |
Результат |
public getDefaultBrowser ( ) : |
||
Результат |
public getDefaultProperties ( ) : |
||
Результат |
public getDevices ( ) : |
||
Результат |
public getDivisions ( ) : |
||
Результат |
public getEngines ( ) : |
||
Результат |
public getGenerationDate ( ) : DateTime | ||
Результат | DateTime |
public getLogger ( ) : Psr\Log\LoggerInterface | ||
Результат | Psr\Log\LoggerInterface | $logger |
public getPlatform ( string $platform ) : |
||
$platform | string | |
Результат |
public getPlatforms ( ) : |
||
Результат |
public getVersion ( ) : string | ||
Результат | string |
public setLogger ( Psr\Log\LoggerInterface $logger ) : |
||
$logger | Psr\Log\LoggerInterface | |
Результат |
public sortDivisions ( ) : |
||
Результат |