This class is used by the main Api class and should not be used directly.
This class tries to extract properties from the User-Agent string itself. This is a completely separate step to the main JSON tree walk but uses the results of the tree walk to optimise the property extraction. The property extraction is done in two steps.
Step 1: Try and identify the type of User-Agent and thus the set of property extraction rules to run. This is optimised by the properties from the tree walk.
Step 2: Run the rules found in step 1 to try and extract the properties.
Located in /UaProps.php (line 21)
Get the User-Agent string properties using the User-Agent rules
Get a specific property using the User-Agent rules
Get a list of all the required properties that are needed for this class to properly run its rules.
Initialise the uar branch of the tree to speed up detection. This method does the following:
1: Extracts out all the property IDs to assist the Api.getProperty() method.
2: Counts the rule sets to avoid doing it on every request.
3: Replaces the default regexes with any API specific ones.
Check if the property is used in the rules and so can be found from them.
This is used in Api.getProperty() to avoid calling the methods in the class if the property that is being looked for cannot be found here.
Documentation generated on Thu, 06 Oct 2011 16:30:02 +0100 by phpDocumentor 1.4.0