PHP Class BrowscapPHP\Parser\Helper\GetData

Author: Christoph Ziegenberg ([email protected])
Author: Thomas Müller ([email protected])
Inheritance: implements BrowscapPHP\Parser\Helper\GetDataInterface
Datei anzeigen Open project: browscap/browscap-php

Public Methods

Method Description
__construct ( BrowscapPHP\Cache\BrowscapCacheInterface $cache, Psr\Log\LoggerInterface $logger, Quoter $quoter ) class contsructor
getSettings ( string $pattern, array $settings = [] ) : array Gets the settings for a given pattern (method calls itself to get the data from the parent patterns)

Private Methods

Method Description
getIniPart ( string $pattern ) : array Gets the relevant part (array of settings) of the ini file for a given pattern.

Method Details

__construct() public method

class contsructor
public __construct ( BrowscapPHP\Cache\BrowscapCacheInterface $cache, Psr\Log\LoggerInterface $logger, Quoter $quoter )
$cache BrowscapPHP\Cache\BrowscapCacheInterface
$logger Psr\Log\LoggerInterface
$quoter BrowscapPHP\Helper\Quoter

getSettings() public method

Gets the settings for a given pattern (method calls itself to get the data from the parent patterns)
public getSettings ( string $pattern, array $settings = [] ) : array
$pattern string
$settings array
return array