// Include the Tera-WURFL file
} // instantiate the Tera-WURFL object
$wurflObj =
new TeraWurfl();
// Get the capabilities of the current client.
$matched =
$wurflObj->
getDeviceCapabilitiesFromRequest(array_change_key_case($request, CASE_UPPER
));
return self::
getAllCapabilities($wurflObj);
} /***
* Builds an array with all capabilities
*
* @param TeraWurfl $wurflObj TeraWurfl object
*/
public static function getAllCapabilities(TeraWurfl
$wurflObj) { foreach ($wurflObj->capabilities
as $group) {