SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class UserAgent

Implementation of parser for user-agents.json file

Variables

NameVisibilityDescription
$info (static) 
$rules 
$ua (static) 

Functions

NameVisibilityDescription
__constructpublicLoad the rules file
getAgentInfopublicReturn info about a given user-agent
getBodyClassespublic (static) 
getDeviceCategorypublic (static) 
getInfopublic (static) 
initpublic (static) 
pregInjectpublicReplace values in a way similar to preg_replace
processprivateInternal recursive processing method

public __construct

void $UserAgent->__construct ( string $filename );

Load the rules file

public getAgentInfo

array $UserAgent->getAgentInfo ( mixed $ua );

Return info about a given user-agent

public getBodyClasses

unknown UserAgent::getBodyClasses ( );

This function does not have a description

public getDeviceCategory

unknown UserAgent::getDeviceCategory ( );

This function does not have a description

public getInfo

unknown UserAgent::getInfo ( );

This function does not have a description

public init

void UserAgent::init ( );

This function does not have a description

public pregInject

unknown $UserAgent->pregInject ( mixed $text , mixed $matches );

Replace values in a way similar to preg_replace

private process

array $UserAgent->process ( string $ua , array $rules );

Internal recursive processing method