Source for file DoCoMoDisplayMap.php
Documentation is available at DoCoMoDisplayMap.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: KUBO Atsuhiro <kubo@isite.co.jp> |
// +----------------------------------------------------------------------+
// $Id: DoCoMoDisplayMap.php,v 1.24 2005/08/18 07:18:26 kuboa Exp $
* Display infomation mapping for DoCoMo
* @package Net_UserAgent_Mobile
* @author KUBO Atsuhiro <kubo@isite.co.jp>
* @version $Revision: 1.24 $
* @see Net_UserAgent_Mobile_Display
* @link http://www.nttdocomo.co.jp/p_s/imode/spec/ryouiki.html
* returns display infomation of the model
* @param string $model name of the model
if (!isset ($displayMap)) {
if (isset ($_SERVER['DOCOMO_MAP'])) {
// using the specified XML data
if (isset ($indexes['OPT'])) {
foreach ($indexes as $modelName => $modelIndexes) {
$displayMap[$modelName] = array ();
foreach ($values[ $modelIndexes[0 ] ]['attributes'] as $attributeName => $attributeValue) {
$displayMap[$modelName][ strtolower($attributeName) ] = $attributeValue;
if (!isset ($displayMap)) {
// i-mode compliant HTML 1.0
// i-mode compliant HTML 2.0
// i-mode compliant HTML 3.0
// i-mode compliant HTML 3.0
// (FOMA 2001/2002/2101V)
// i-mode compliant HTML 4.0
// i-mode compliant HTML 4.0
// (FOMA 2051/2102V/2701)
// i-mode compliant HTML 5.0 (505i etc.)
// i-mode compliant HTML 5.0
* c-hanging-comment-ender-p: nil
Documentation generated on Mon, 11 Mar 2019 14:16:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|