TeraWurfl example

if (empty($config['terawurfl_lib_dir'])) {
                // No lib_dir given                 throw new Zend_Http_UserAgent_Features_Exception('The "terawurfl_lib_dir" parameter is not defined');
            }

            // 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 */
Home | Imprint | This part of the site doesn't use cookies.