Method | Description | |
---|---|---|
checkUpdate ( ) : integer | null | checks if an update on a remote location for the local file or the cache | |
convertFile ( string $iniFile ) | reads and parses an ini file and writes the results into the cache | |
convertString ( string $iniString ) | reads and parses an ini string and writes the results into the cache | |
fetch ( string $file, string $remoteFile = IniLoader::PHP_INI ) | fetches a remote file and stores it into a local folder | |
getCache ( ) : BrowscapPHP\Cache\BrowscapCacheInterface | Gets a cache instance | |
getClient ( ) : |
||
getLogger ( ) : Psr\Log\LoggerInterface | returns a logger instance | |
setCache ( BrowscapPHP\Cache\BrowscapCacheInterface | WurflCache\Adapter\AdapterInterface $cache ) : |
Sets a cache instance | |
setClient ( |
||
setLogger ( Psr\Log\LoggerInterface $logger ) : |
Sets a logger instance | |
update ( string $remoteFile = IniLoader::PHP_INI ) | fetches a remote file, parses it and writes the result into the cache |
Method | Description | |
---|---|---|
sanitizeContent ( string $content ) : mixed | ||
storeContent ( |
reads and parses an ini string and writes the results into the cache |
public checkUpdate ( ) : integer | null | ||
return | integer | null | The actual cached version if a newer version is available, null otherwise |
public convertFile ( string $iniFile ) | ||
$iniFile | string |
public convertString ( string $iniString ) | ||
$iniString | string |
public getCache ( ) : BrowscapPHP\Cache\BrowscapCacheInterface | ||
return | BrowscapPHP\Cache\BrowscapCacheInterface |
public getLogger ( ) : Psr\Log\LoggerInterface | ||
return | Psr\Log\LoggerInterface |
public setCache ( BrowscapPHP\Cache\BrowscapCacheInterface | WurflCache\Adapter\AdapterInterface $cache ) : |
||
$cache | BrowscapPHP\Cache\BrowscapCacheInterface | WurflCache\Adapter\AdapterInterface | |
return |
public setLogger ( Psr\Log\LoggerInterface $logger ) : |
||
$logger | Psr\Log\LoggerInterface | |
return |