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

Class: WURFL_CustomDeviceRepository

Source Location: /CustomDeviceRepository.php

Class Overview


WURFL Device Repository


Implements interfaces:

Constants

Methods



Class Details

[line 23]
WURFL Device Repository



[ Top ]


Class Methods


constructor __construct [line 57]

WURFL_CustomDeviceRepository __construct( WURFL_Storage_Base $persistenceStorage, array $deviceClassificationNames)

Creates a new Device Repository from the given $persistenceStorage and $deviceClassificationNames



Tags:

throws:  InvalidArgumentException
access:  public


Parameters:

WURFL_Storage_Base   $persistenceStorage  
array   $deviceClassificationNames  

[ Top ]

method getAllCapabilitiesForDevice [line 185]

array getAllCapabilitiesForDevice( string $deviceID)

Returns an associative array of capabilityName => capabilityValue for the given $deviceID



Tags:

return:  associative array of capabilityName, capabilityValue
access:  public



Implementation of:
WURFL_DeviceRepository::getAllCapabilitiesForDevice()
Returns an associative array of capabilityName => capabilityValue for the given device

Parameters:

string   $deviceID  

[ Top ]

method getAllDevices [line 115]

array getAllDevices( )

Returns all devices in the repository



Tags:

access:  public



Implementation of:
WURFL_DeviceRepository::getAllDevices()
Return an array of all devices defined in the wurfl + patch files
[ Top ]

method getAllDevicesID [line 129]

array getAllDevicesID( )

Returns an array of all the device ids



Tags:

access:  public



Implementation of:
WURFL_DeviceRepository::getAllDevicesID()
Returns an array of all the device ids
[ Top ]

method getCapabilitiesNameForGroup [line 231]

array getCapabilitiesNameForGroup( string $groupID)

Returns an array of all capability names defined in the given group ID



Tags:

return:  of capability names
throws:  WURFL_WURFLException The given $groupID does not exist
access:  public



Implementation of:
WURFL_DeviceRepository::getCapabilitiesNameForGroup()
Returns an array of all capability names defined in the given group ID

Parameters:

string   $groupID  

[ Top ]

method getCapabilityForDevice [line 149]

string getCapabilityForDevice( string $deviceId, string $capabilityName)

Returns the value for the given $deviceId and $capabilityName



Tags:

return:  value
throws:  WURFL_WURFLException device ID or capability was not found
access:  public



Implementation of:
WURFL_DeviceRepository::getCapabilityForDevice()
Returns the Capability value for the given device id and capablility name

Parameters:

string   $deviceId  
string   $capabilityName  

[ Top ]

method getDevice [line 100]

WURFL_CustomDevice getDevice( string $deviceId)

Returns a device for the given device ID



Tags:

throws:  WURFL_Exception if $deviceID is not defined in wurfl devices repository
access:  public



Implementation of:
WURFL_DeviceRepository::getDevice()
Returns a device for the given $deviceId

Parameters:

string   $deviceId  

[ Top ]

method getDeviceHierarchy [line 204]

array getDeviceHierarchy( string $deviceId)

Returns an array containing all devices from the root device to the device of the given $deviceId



Tags:

return:  All WURFL_Device objects in the fallback tree
access:  public



Implementation of:
WURFL_DeviceRepository::getDeviceHierarchy()
Returns an array containing all devices from the root device to the device of the given id

Parameters:

string   $deviceId  

[ Top ]

method getGroupIDForCapability [line 245]

string getGroupIDForCapability( string $capability)

Returns the group id that contains the given $capability



Tags:

throws:  InvalidArgumentException an invalid $capability was specified
access:  public



Implementation of:
WURFL_DeviceRepository::getGroupIDForCapability()
Returns the group id in which the given capabiliy name belongs to

Parameters:

string   $capability  

[ Top ]

method getLastUpdated [line 89]

void getLastUpdated( )



Tags:

access:  public



Implementation of:
WURFL_DeviceRepository::getLastUpdated()
Returns loaded WURFL last updated date
[ Top ]

method getListOfGroups [line 219]

array getListOfGroups( )

Returns an array Of group IDs defined in wurfl



Tags:

access:  public



Implementation of:
WURFL_DeviceRepository::getListOfGroups()
Returns an array of the group IDs defined in wurfl
[ Top ]

method getVersion [line 85]

void getVersion( )



Tags:

access:  public



Implementation of:
WURFL_DeviceRepository::getVersion()
Returns loaded WURFL version
[ Top ]

method getWURFLInfo [line 77]

void getWURFLInfo( )



Tags:

access:  public



Implementation of:
WURFL_DeviceRepository::getWURFLInfo()
Return a WURFL_Xml_Info object containing:
[ Top ]


Class Constants

WURFL_USER_AGENTS_CLASSIFIED =  "WURFL_USER_AGENTS_CLASSIFIED"

[line 25]


[ Top ]



Documentation generated on Thu, 03 Oct 2013 19:11:48 +0000 by phpDocumentor 1.4.4