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

Class: WURFL_DeviceRepository

Source Location: /DeviceRepository.php

Interface Overview


Provides methods for accessing a repository of WURFL Devices


Methods



Class Details

[line 22]
Provides methods for accessing a repository of WURFL Devices



[ Top ]


Class Methods


method getAllCapabilitiesForDevice [line 87]

array getAllCapabilitiesForDevice( string $deviceId)

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



Tags:

return:  associative array of capabilityName, capabilityValue
access:  public


Parameters:

string   $deviceId  

[ Top ]

method getAllDevices [line 58]

array getAllDevices( )

Return an array of all devices defined in the wurfl + patch files



Tags:

access:  public


[ Top ]

method getAllDevicesID [line 65]

array getAllDevicesID( )

Returns an array of all the device ids



Tags:

access:  public


[ Top ]

method getCapabilitiesNameForGroup [line 112]

array getCapabilitiesNameForGroup( string $groupID)

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



Tags:

return:  of capability names
access:  public


Parameters:

string   $groupID  

[ Top ]

method getCapabilityForDevice [line 76]

string getCapabilityForDevice( string $deviceId, string $capabilityName)

Returns the Capability value for the given device id and capablility name



Tags:

access:  public


Parameters:

string   $deviceId  
string   $capabilityName  

[ Top ]

method getDevice [line 52]

WURFL_Device getDevice( string $deviceId)

Returns a device for the given $deviceId



Tags:

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


Parameters:

string   $deviceId  

[ Top ]

method getDeviceHierarchy [line 96]

array getDeviceHierarchy( string $deviceId)

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



Tags:

access:  public


Parameters:

string   $deviceId  

[ Top ]

method getGroupIDForCapability [line 120]

string getGroupIDForCapability( string $capability)

Returns the group id in which the given capabiliy name belongs to



Tags:

return:  Group ID
access:  public


Parameters:

string   $capability  

[ Top ]

method getLastUpdated [line 43]

string getLastUpdated( )

Returns loaded WURFL last updated date



Tags:

return:  Loaded WURFL last updated date
access:  public


[ Top ]

method getListOfGroups [line 104]

array getListOfGroups( )

Returns an array of the group IDs defined in wurfl



Tags:

access:  public


[ Top ]

method getVersion [line 37]

string getVersion( )

Returns loaded WURFL version



Tags:

return:  Loaded WURFL version
access:  public


[ Top ]

method getWURFLInfo [line 31]

WURFL_Xml_Info getWURFLInfo( )

Return a WURFL_Xml_Info object containing:

  • version
  • lastUpdated
  • officialURL




Tags:

return:  WURFL Version info
access:  public


[ Top ]


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