WURFL_Handlers
[ class tree: WURFL_Handlers ] [ index: WURFL_Handlers ] [ all elements ]

Class: WURFL_Handlers_CatchAllHandler

Source Location: /Handlers/CatchAllHandler.php

Class Overview

WURFL_Handlers_Handler
   |
   --WURFL_Handlers_CatchAllHandler

CatchAllUserAgentHandler


Author(s):

Version:

  • $id$

Copyright:

  • ScientiaMobile, Inc.

Variables

Constants

Methods


Inherited Variables

Inherited Methods

Class: WURFL_Handlers_Handler

WURFL_Handlers_Handler::__construct()
WURFL_Handlers_Handler::applyConclusiveMatch()
Attempt to find a conclusive match for the given $userAgent
WURFL_Handlers_Handler::applyExactMatch()
WURFL_Handlers_Handler::applyMatch()
Template method to apply matching system to user agent
WURFL_Handlers_Handler::applyRecoveryCatchAllMatch()
Applies Catch-All match
WURFL_Handlers_Handler::applyRecoveryMatch()
Applies Recovery Match
WURFL_Handlers_Handler::canHandle()
Returns true if this handler can handle the given $userAgent
WURFL_Handlers_Handler::filter()
Classifies the given $userAgent and specified $deviceID
WURFL_Handlers_Handler::getDeviceIDFromLD()
WURFL_Handlers_Handler::getDeviceIDFromRIS()
WURFL_Handlers_Handler::getName()
Alias for getPrefix()
WURFL_Handlers_Handler::getNiceName()
WURFL_Handlers_Handler::getPrefix()
Returns the prefix for this Handler, like BLACKBERRY_DEVICEIDS for the BlackBerry Handler. The "BLACKBERRY_" portion comes from the individual Handler's $prefix property and "_DEVICEIDS" is added here.
WURFL_Handlers_Handler::getUserAgentsWithDeviceId()
Returns a list of User Agents with their Device IDs
WURFL_Handlers_Handler::isDeviceExist()
Returns true if given $deviceId exists
WURFL_Handlers_Handler::lookForMatchingUserAgent()
Find a matching WURFL device from the given $userAgent. Override this method to give an alternative way to do the matching
WURFL_Handlers_Handler::match()
Finds the device id for the given request - if it is not found it delegates to the next available handler
WURFL_Handlers_Handler::normalizeUserAgent()
Normalizes the given $userAgent using this handler's User Agent Normalizer.
WURFL_Handlers_Handler::persistData()
Saves the classified user agents in the persistence provider
WURFL_Handlers_Handler::setNextHandler()
Sets the next Handler
WURFL_Handlers_Handler::updateUserAgentsWithDeviceIDMap()
Updates the map containing the classified user agents. These are stored in the associative array userAgentsWithDeviceID like user_agent => deviceID.

Class Details

[line 30]
CatchAllUserAgentHandler



Tags:

version:  $id$
copyright:  ScientiaMobile, Inc.
license:  GNU


[ Top ]


Class Variables

$prefix =  "CATCH_ALL"

[line 32]



Tags:

access:  protected

Type:   mixed
Overrides:   Array


[ Top ]



Class Methods


method applyConclusiveMatch [line 59]

string applyConclusiveMatch( string $userAgent)

If UA starts with Mozilla, apply LD with tollerance 5.

If UA does not start with Mozilla, apply RIS on FS




Tags:

access:  public


Overrides WURFL_Handlers_Handler::applyConclusiveMatch() (Attempt to find a conclusive match for the given $userAgent)

Parameters:

string   $userAgent  

[ Top ]

method applyExactMatch [line 71]

void applyExactMatch( $userAgent)



Tags:

access:  public


Overrides WURFL_Handlers_Handler::applyExactMatch() (parent method not documented)

Parameters:

   $userAgent  

[ Top ]

method canHandle [line 48]

boolean canHandle( string $userAgent)

Final Interceptor: Intercept Everything that has not been trapped by a previous handler



Tags:

return:  always true
access:  public


Overrides WURFL_Handlers_Handler::canHandle() (Returns true if this handler can handle the given $userAgent)

Parameters:

string   $userAgent  

[ Top ]

method filter [line 128]

void filter( $userAgent, $deviceID)



Tags:

access:  public


Overrides WURFL_Handlers_Handler::filter() (Classifies the given $userAgent and specified $deviceID)

Parameters:

   $userAgent  
   $deviceID  

[ Top ]

method persistData [line 138]

void persistData( )



Tags:

access:  public


Overrides WURFL_Handlers_Handler::persistData() (Saves the classified user agents in the persistence provider)

[ Top ]


Class Constants

MOZILLA4 =  "CATCH_ALL_MOZILLA4"

[line 36]


[ Top ]

MOZILLA5 =  "CATCH_ALL_MOZILLA5"

[line 35]


[ Top ]

MOZILLA_TOLERANCE =  5

[line 33]


[ Top ]



Documentation generated on Fri, 30 Mar 2012 17:16:58 -0400 by phpDocumentor 1.4.4