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

Source for file DoCoMoDisplayMap.php

Documentation is available at DoCoMoDisplayMap.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP version 4                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2004 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 3.0 of the PHP license,       |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available through the world-wide-web at the following url:           |
  11. // | http://www.php.net/license/3_0.txt.                                  |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Authors: KUBO Atsuhiro <kubo@isite.co.jp>                            |
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id: DoCoMoDisplayMap.php,v 1.24 2005/08/18 07:18:26 kuboa Exp $
  20. //
  21.  
  22. /**
  23.  * Display infomation mapping for DoCoMo
  24.  *
  25.  * @package  Net_UserAgent_Mobile
  26.  * @category Networking
  27.  * @author   KUBO Atsuhiro <kubo@isite.co.jp>
  28.  * @access   public
  29.  * @version  $Revision: 1.24 $
  30.  * @see      Net_UserAgent_Mobile_Display
  31.  * @link     http://www.nttdocomo.co.jp/p_s/imode/spec/ryouiki.html
  32.  */
  33. {
  34.  
  35.     /**
  36.      * returns display infomation of the model
  37.      *
  38.      * @param string $model name of the model
  39.      * @return array 
  40.      * @access public
  41.      * @static
  42.      */
  43.     function get($model)
  44.     {
  45.         static $displayMap;
  46.         if (!isset($displayMap)) {
  47.             if (isset($_SERVER['DOCOMO_MAP'])) {
  48.  
  49.                 // using the specified XML data
  50.                 while (true{
  51.                     if (!function_exists('xml_parser_create')
  52.                         || !is_readable($_SERVER['DOCOMO_MAP'])
  53.                         {
  54.                         break;
  55.                     }
  56.                     $xml file_get_contents($_SERVER['DOCOMO_MAP']);
  57.                     $parser xml_parser_create();
  58.                     if ($parser === false{
  59.                         break;
  60.                     }
  61.                     xml_parse_into_struct($parser$xml$values$indexes);
  62.                     if (!xml_parser_free($parser)) {
  63.                         break;
  64.                     }
  65.                     if (isset($indexes['OPT'])) {
  66.                         unset($indexes['OPT']);
  67.                     }
  68.                     foreach ($indexes as $modelName => $modelIndexes{
  69.                         $displayMap[$modelName= array();
  70.                         foreach ($values$modelIndexes[0] ]['attributes'as $attributeName => $attributeValue{
  71.                             $displayMap[$modelName]strtolower($attributeName$attributeValue;
  72.                         }
  73.                     }
  74.                     break;
  75.                 }
  76.             }
  77.  
  78.             if (!isset($displayMap)) {
  79.                 $displayMap = array(
  80.  
  81.                                     // i-mode compliant HTML 1.0
  82.                                     'D501I' => array(
  83.                                                      'width'  => 96,
  84.                                                      'height' => 72,
  85.                                                      'depth'  => 2,
  86.                                                      'color'  => 0
  87.                                                      ),
  88.                                     'F501I' => array(
  89.                                                      'width'  => 112,
  90.                                                      'height' => 84,
  91.                                                      'depth'  => 2,
  92.                                                      'color'  => 0
  93.                                                      ),
  94.                                     'N501I' => array(
  95.                                                      'width'  => 118,
  96.                                                      'height' => 128,
  97.                                                      'depth'  => 2,
  98.                                                      'color'  => 0
  99.                                                      ),
  100.                                     'P501I' => array(
  101.                                                      'width'  => 96,
  102.                                                      'height' => 120,
  103.                                                      'depth'  => 2,
  104.                                                      'color'  => 0
  105.                                                      ),
  106.  
  107.                                     // i-mode compliant HTML 2.0
  108.                                     'D502I' => array(
  109.                                                      'width'  => 96,
  110.                                                      'height' => 90,
  111.                                                      'depth'  => 256,
  112.                                                      'color'  => 1
  113.                                                      ),
  114.                                     'F502I' => array(
  115.                                                      'width'  => 96,
  116.                                                      'height' => 91,
  117.                                                      'depth'  => 256,
  118.                                                      'color'  => 1
  119.                                                      ),
  120.                                     'N502I' => array(
  121.                                                      'width'  => 118,
  122.                                                      'height' => 128,
  123.                                                      'depth'  => 4,
  124.                                                      'color'  => 0
  125.                                                      ),
  126.                                     'P502I' => array(
  127.                                                      'width'  => 96,
  128.                                                      'height' => 117,
  129.                                                      'depth'  => 4,
  130.                                                      'color'  => 0
  131.                                                      ),
  132.                                     'NM502I' => array(
  133.                                                       'width'  => 111,
  134.                                                       'height' => 106,
  135.                                                       'depth'  => 2,
  136.                                                       'color'  => 0
  137.                                                       ),
  138.                                     'SO502I' => array(
  139.                                                       'width'  => 120,
  140.                                                       'height' => 120,
  141.                                                       'depth'  => 4,
  142.                                                       'color'  => 0
  143.                                                       ),
  144.                                     'F502IT' => array(
  145.                                                       'width'  => 96,
  146.                                                       'height' => 91,
  147.                                                       'depth'  => 256,
  148.                                                       'color'  => 1
  149.                                                       ),
  150.                                     'N502IT' => array(
  151.                                                       'width'  => 118,
  152.                                                       'height' => 128,
  153.                                                       'depth'  => 256,
  154.                                                       'color'  => 1
  155.                                                       ),
  156.                                     'SO502IWM' => array(
  157.                                                         'width'  => 120,
  158.                                                         'height' => 113,
  159.                                                         'depth'  => 256,
  160.                                                         'color'  => 1
  161.                                                         ),
  162.                                     'SH821I' => array(
  163.                                                       'width'  => 96,
  164.                                                       'height' => 78,
  165.                                                       'depth'  => 256,
  166.                                                       'color'  => 1
  167.                                                       ),
  168.                                     'N821I' => array(
  169.                                                      'width'  => 118,
  170.                                                      'height' => 128,
  171.                                                      'depth'  => 4,
  172.                                                      'color'  => 0
  173.                                                      ),
  174.                                     'P821I' => array(
  175.                                                      'width'  => 118,
  176.                                                      'height' => 128,
  177.                                                      'depth'  => 4,
  178.                                                      'color'  => 0
  179.                                                      ),
  180.                                     'D209I' => array(
  181.                                                      'width'  => 96,
  182.                                                      'height' => 90,
  183.                                                      'depth'  => 256,
  184.                                                      'color'  => 1
  185.                                                      ),
  186.                                     'ER209I' => array(
  187.                                                       'width'  => 120,
  188.                                                       'height' => 72,
  189.                                                       'depth'  => 2,
  190.                                                       'color'  => 0
  191.                                                       ),
  192.                                     'F209I' => array(
  193.                                                      'width'  => 96,
  194.                                                      'height' => 91,
  195.                                                      'depth'  => 256,
  196.                                                      'color'  => 1
  197.                                                      ),
  198.                                     'KO209I' => array(
  199.                                                       'width'  => 96,
  200.                                                       'height' => 96,
  201.                                                       'depth'  => 256,
  202.                                                       'color'  => 1
  203.                                                       ),
  204.                                     'N209I' => array(
  205.                                                      'width'  => 108,
  206.                                                      'height' => 82,
  207.                                                      'depth'  => 4,
  208.                                                      'color'  => 0
  209.                                                      ),
  210.                                     'P209I' => array(
  211.                                                      'width'  => 96,
  212.                                                      'height' => 87,
  213.                                                      'depth'  => 4,
  214.                                                      'color'  => 0
  215.                                                      ),
  216.                                     'P209IS' => array(
  217.                                                       'width'  => 96,
  218.                                                       'height' => 87,
  219.                                                       'depth'  => 256,
  220.                                                       'color'  => 1
  221.                                                       ),
  222.                                     'R209I' => array(
  223.                                                      'width'  => 96,
  224.                                                      'height' => 72,
  225.                                                      'depth'  => 4,
  226.                                                      'color'  => 0
  227.                                                      ),
  228.                                     'P651PS' => array(
  229.                                                       'width'  => 96,
  230.                                                       'height' => 87,
  231.                                                       'depth'  => 4,
  232.                                                       'color'  => 0
  233.                                                       ),
  234.                                     'R691I' => array(
  235.                                                      'width'  => 96,
  236.                                                      'height' => 72,
  237.                                                      'depth'  => 4,
  238.                                                      'color'  => 0
  239.                                                      ),
  240.                                     'F671I' => array(
  241.                                                      'width'  => 120,
  242.                                                      'height' => 126,
  243.                                                      'depth'  => 256,
  244.                                                      'color'  => 1
  245.                                                      ),
  246.                                     'F210I' => array(
  247.                                                      'width'  => 96,
  248.                                                      'height' => 113,
  249.                                                      'depth'  => 256,
  250.                                                      'color'  => 1
  251.                                                      ),
  252.                                     'N210I' => array(
  253.                                                      'width'  => 118,
  254.                                                      'height' => 113,
  255.                                                      'depth'  => 256,
  256.                                                      'color'  => 1
  257.                                                      ),
  258.                                     'P210I' => array(
  259.                                                      'width'  => 96,
  260.                                                      'height' => 91,
  261.                                                      'depth'  => 256,
  262.                                                      'color'  => 1
  263.                                                      ),
  264.                                     'KO210I' => array(
  265.                                                       'width'  => 96,
  266.                                                       'height' => 96,
  267.                                                       'depth'  => 256,
  268.                                                       'color'  => 1
  269.                                                       ),
  270.  
  271.                                     // i-mode compliant HTML 3.0
  272.                                     'F503I' => array(
  273.                                                      'width'  => 120,
  274.                                                      'height' => 130,
  275.                                                      'depth'  => 256,
  276.                                                      'color'  => 1
  277.                                                      ),
  278.                                     'F503IS' => array(
  279.                                                       'width'  => 120,
  280.                                                       'height' => 130,
  281.                                                       'depth'  => 4096,
  282.                                                       'color'  => 1
  283.                                                       ),
  284.                                     'P503I' => array(
  285.                                                      'width'  => 120,
  286.                                                      'height' => 130,
  287.                                                      'depth'  => 256,
  288.                                                      'color'  => 1
  289.                                                      ),
  290.                                     'P503IS' => array(
  291.                                                       'width'  => 120,
  292.                                                       'height' => 130,
  293.                                                       'depth'  => 256,
  294.                                                       'color'  => 1
  295.                                                       ),
  296.                                     'N503I' => array(
  297.                                                      'width'  => 118,
  298.                                                      'height' => 128,
  299.                                                      'depth'  => 4096,
  300.                                                      'color'  => 1
  301.                                                      ),
  302.                                     'N503IS' => array(
  303.                                                       'width'  => 118,
  304.                                                       'height' => 128,
  305.                                                       'depth'  => 4096,
  306.                                                       'color'  => 1
  307.                                                       ),
  308.                                     'SO503I' => array(
  309.                                                       'width'  => 120,
  310.                                                       'height' => 113,
  311.                                                       'depth'  => 65536,
  312.                                                       'color'  => 1
  313.                                                       ),
  314.                                     'SO503IS' => array(
  315.                                                        'width'  => 120,
  316.                                                        'height' => 113,
  317.                                                        'depth'  => 65536,
  318.                                                        'color'  => 1
  319.                                                        ),
  320.                                     'D503I' => array(
  321.                                                      'width'  => 132,
  322.                                                      'height' => 126,
  323.                                                      'depth'  => 4096,
  324.                                                      'color'  => 1
  325.                                                      ),
  326.                                     'D503IS' => array(
  327.                                                       'width'  => 132,
  328.                                                       'height' => 126,
  329.                                                       'depth'  => 4096,
  330.                                                       'color'  => 1
  331.                                                       ),
  332.                                     'D210I' => array(
  333.                                                      'width'  => 96,
  334.                                                      'height' => 91,
  335.                                                      'depth'  => 256,
  336.                                                      'color'  => 1
  337.                                                      ),
  338.                                     'SO210I' => array(
  339.                                                       'width'  => 120,
  340.                                                       'height' => 113,
  341.                                                       'depth'  => 256,
  342.                                                       'color'  => 1
  343.                                                       ),
  344.                                     'F211I' => array(
  345.                                                      'width'  => 96,
  346.                                                      'height' => 113,
  347.                                                      'depth'  => 4096,
  348.                                                      'color'  => 1
  349.                                                      ),
  350.                                     'D211I' => array(
  351.                                                      'width'  => 100,
  352.                                                      'height' => 91,
  353.                                                      'depth'  => 4096,
  354.                                                      'color'  => 1
  355.                                                      ),
  356.                                     'N211I' => array(
  357.                                                      'width'  => 118,
  358.                                                      'height' => 128,
  359.                                                      'depth'  => 4096,
  360.                                                      'color'  => 1
  361.                                                      ),
  362.                                     'N211IS' => array(
  363.                                                       'width'  => 118,
  364.                                                       'height' => 128,
  365.                                                       'depth'  => 4096,
  366.                                                       'color'  => 1
  367.                                                       ),
  368.                                     'P211I' => array(
  369.                                                      'width'  => 120,
  370.                                                      'height' => 130,
  371.                                                      'depth'  => 65536,
  372.                                                      'color'  => 1
  373.                                                      ),
  374.                                     'P211IS' => array(
  375.                                                       'width'  => 120,
  376.                                                       'height' => 130,
  377.                                                       'depth'  => 65536,
  378.                                                       'color'  => 1
  379.                                                       ),
  380.                                     'SO211I' => array(
  381.                                                       'width'  => 120,
  382.                                                       'height' => 112,
  383.                                                       'depth'  => 4096,
  384.                                                       'color'  => 1
  385.                                                       ),
  386.                                     'R211I' => array(
  387.                                                      'width'  => 96,
  388.                                                      'height' => 98,
  389.                                                      'depth'  => 4096,
  390.                                                      'color'  => 1
  391.                                                      ),
  392.                                     'SH251I' => array(
  393.                                                       'width'  => 120,
  394.                                                       'height' => 130,
  395.                                                       'depth'  => 65536,
  396.                                                       'color'  => 1
  397.                                                       ),
  398.                                     'SH251IS' => array(
  399.                                                        'width'  => 176,
  400.                                                        'height' => 187,
  401.                                                        'depth'  => 65536,
  402.                                                        'color'  => 1
  403.                                                        ),
  404.                                     'R692I' => array(
  405.                                                      'width'  => 96,
  406.                                                      'height' => 98,
  407.                                                      'depth'  => 4096,
  408.                                                      'color'  => 1
  409.                                                      ),
  410.  
  411.                                     // i-mode compliant HTML 3.0
  412.                                     // (FOMA 2001/2002/2101V)
  413.                                     'N2001' => array(
  414.                                                      'width'  => 118,
  415.                                                      'height' => 128,
  416.                                                      'depth'  => 4096,
  417.                                                      'color'  => 1
  418.                                                      ),
  419.                                     'N2002' => array(
  420.                                                      'width'  => 118,
  421.                                                      'height' => 128,
  422.                                                      'depth'  => 65536,
  423.                                                      'color'  => 1
  424.                                                      ),
  425.                                     'P2002' => array(
  426.                                                      'width'  => 118,
  427.                                                      'height' => 128,
  428.                                                      'depth'  => 65536,
  429.                                                      'color'  => 1
  430.                                                      ),
  431.                                     'D2101V' => array(
  432.                                                       'width'  => 120,
  433.                                                       'height' => 130,
  434.                                                       'depth'  => 262144,
  435.                                                       'color'  => 1
  436.                                                       ),
  437.                                     'P2101V' => array(
  438.                                                       'width'  => 163,
  439.                                                       'height' => 182,
  440.                                                       'depth'  => 262144,
  441.                                                       'color'  => 1
  442.                                                       ),
  443.                                     'SH2101V' => array(
  444.                                                        'width'  => 800,
  445.                                                        'height' => 600,
  446.                                                        'depth'  => 65536,
  447.                                                        'color'  => 1
  448.                                                        ),
  449.                                     'T2101V' => array(
  450.                                                       'width'  => 176,
  451.                                                       'height' => 144,
  452.                                                       'depth'  => 262144,
  453.                                                       'color'  => 1
  454.                                                       ),
  455.  
  456.                                     // i-mode compliant HTML 4.0
  457.                                     'D504I' => array(
  458.                                                      'width'  => 132,
  459.                                                      'height' => 144,
  460.                                                      'depth'  => 262144,
  461.                                                      'color'  => 1
  462.                                                      ),
  463.                                     'F504I' => array(
  464.                                                      'width'  => 132,
  465.                                                      'height' => 136,
  466.                                                      'depth'  => 65536,
  467.                                                      'color'  => 1
  468.                                                      ),
  469.                                     'F504IS' => array(
  470.                                                       'width'  => 132,
  471.                                                       'height' => 136,
  472.                                                       'depth'  => 65536,
  473.                                                       'color'  => 1
  474.                                                       ),
  475.                                     'N504I' => array(
  476.                                                      'width'  => 160,
  477.                                                      'height' => 180,
  478.                                                      'depth'  => 65536,
  479.                                                      'color'  => 1
  480.                                                      ),
  481.                                     'N504IS' => array(
  482.                                                       'width'  => 160,
  483.                                                       'height' => 180,
  484.                                                       'depth'  => 65536,
  485.                                                       'color'  => 1
  486.                                                       ),
  487.                                     'SO504I' => array(
  488.                                                       'width'  => 120,
  489.                                                       'height' => 112,
  490.                                                       'depth'  => 65536,
  491.                                                       'color'  => 1
  492.                                                       ),
  493.                                     'P504I' => array(
  494.                                                      'width'  => 132,
  495.                                                      'height' => 144,
  496.                                                      'depth'  => 65536,
  497.                                                      'color'  => 1
  498.                                                      ),
  499.                                     'P504IS' => array(
  500.                                                       'width'  => 132,
  501.                                                       'height' => 144,
  502.                                                       'depth'  => 65536,
  503.                                                       'color'  => 1
  504.                                                       ),
  505.                                     'D251I' => array(
  506.                                                      'width'  => 132,
  507.                                                      'height' => 144,
  508.                                                      'depth'  => 262144,
  509.                                                      'color'  => 1
  510.                                                      ),
  511.                                     'D251IS' => array(
  512.                                                       'width'  => 132,
  513.                                                       'height' => 144,
  514.                                                       'depth'  => 262144,
  515.                                                       'color'  => 1
  516.                                                       ),
  517.                                     'F251I' => array(
  518.                                                      'width'  => 132,
  519.                                                      'height' => 140,
  520.                                                      'depth'  => 65536,
  521.                                                      'color'  => 1
  522.                                                      ),
  523.                                     'N251I' => array(
  524.                                                      'width'  => 132,
  525.                                                      'height' => 140,
  526.                                                      'depth'  => 65536,
  527.                                                      'color'  => 1
  528.                                                      ),
  529.                                     'N251IS' => array(
  530.                                                       'width'  => 132,
  531.                                                       'height' => 140,
  532.                                                       'depth'  => 65536,
  533.                                                       'color'  => 1
  534.                                                       ),
  535.                                     'P251IS' => array(
  536.                                                       'width'  => 132,
  537.                                                       'height' => 144,
  538.                                                       'depth'  => 65536,
  539.                                                       'color'  => 1
  540.                                                       ),
  541.                                     'F671IS' => array(
  542.                                                       'width'  => 160,
  543.                                                       'height' => 120,
  544.                                                       'depth'  => 65536,
  545.                                                       'color'  => 1
  546.                                                       ),
  547.                                     'F212I' => array(
  548.                                                      'width'  => 132,
  549.                                                      'height' => 136,
  550.                                                      'depth'  => 65536,
  551.                                                      'color'  => 1
  552.                                                      ),
  553.                                     'SO212I' => array(
  554.                                                       'width'  => 120,
  555.                                                       'height' => 112,
  556.                                                       'depth'  => 65536,
  557.                                                       'color'  => 1
  558.                                                       ),
  559.                                     'F661I' => array(
  560.                                                      'width'  => 132,
  561.                                                      'height' => 136,
  562.                                                      'depth'  => 65536,
  563.                                                      'color'  => 1
  564.                                                      ),
  565.                                     'F672I' => array(
  566.                                                      'width'  => 160,
  567.                                                      'height' => 120,
  568.                                                      'depth'  => 65536,
  569.                                                      'color'  => 1
  570.                                                      ),
  571.                                     'SO213I' => array(
  572.                                                       'width'  => 120,
  573.                                                       'height' => 112,
  574.                                                       'depth'  => 65536,
  575.                                                       'color'  => 1
  576.                                                       ),
  577.                                     'SO213IS' => array(
  578.                                                        'width'  => 120,
  579.                                                        'height' => 112,
  580.                                                        'depth'  => 65536,
  581.                                                        'color'  => 1
  582.                                                        ),
  583.  
  584.                                     // i-mode compliant HTML 4.0
  585.                                     // (FOMA 2051/2102V/2701)
  586.                                     'F2051' => array(
  587.                                                      'width'  => 176,
  588.                                                      'height' => 182,
  589.                                                      'depth'  => 65536,
  590.                                                      'color'  => 1
  591.                                                      ),
  592.                                     'N2051' => array(
  593.                                                      'width'  => 176,
  594.                                                      'height' => 198,
  595.                                                      'depth'  => 65536,
  596.                                                      'color'  => 1
  597.                                                      ),
  598.                                     'P2102V' => array(
  599.                                                       'width'  => 176,
  600.                                                       'height' => 198,
  601.                                                       'depth'  => 262144,
  602.                                                       'color'  => 1
  603.                                                       ),
  604.                                     'P2102V' => array(
  605.                                                       'width'  => 176,
  606.                                                       'height' => 198,
  607.                                                       'depth'  => 262144,
  608.                                                       'color'  => 1
  609.                                                       ),
  610.                                     'F2102V' => array(
  611.                                                       'width'  => 176,
  612.                                                       'height' => 182,
  613.                                                       'depth'  => 65536,
  614.                                                       'color'  => 1
  615.                                                       ),
  616.                                     'N2102V' => array(
  617.                                                       'width'  => 176,
  618.                                                       'height' => 198,
  619.                                                       'depth'  => 65536,
  620.                                                       'color'  => 1
  621.                                                       ),
  622.                                     'N2701' => array(
  623.                                                      'width'  => 176,
  624.                                                      'height' => 198,
  625.                                                      'depth'  => 65536,
  626.                                                      'color'  => 1
  627.                                                      ),
  628.  
  629.                                     // i-mode compliant HTML 5.0 (505i etc.)
  630.                                     'D505I' => array(
  631.                                                      'width'  => 240,
  632.                                                      'height' => 270,
  633.                                                      'depth'  => 262144,
  634.                                                      'color'  => 1
  635.                                                      ),
  636.                                     'SO505I' => array(
  637.                                                       'width'  => 256,
  638.                                                       'height' => 240,
  639.                                                       'depth'  => 262144,
  640.                                                       'color'  => 1
  641.                                                       ),
  642.                                     'SH505I' => array(
  643.                                                       'width'  => 240,
  644.                                                       'height' => 252,
  645.                                                       'depth'  => 262144,
  646.                                                       'color'  => 1
  647.                                                       ),
  648.                                     'N505I' => array(
  649.                                                      'width'  => 240,
  650.                                                      'height' => 270,
  651.                                                      'depth'  => 262144,
  652.                                                      'color'  => 1
  653.                                                      ),
  654.                                     'F505I' => array(
  655.                                                      'width'  => 240,
  656.                                                      'height' => 268,
  657.                                                      'depth'  => 262144,
  658.                                                      'color'  => 1
  659.                                                      ),
  660.                                     'P505I' => array(
  661.                                                      'width'  => 240,
  662.                                                      'height' => 266,
  663.                                                      'depth'  => 65536,
  664.                                                      'color'  => 1
  665.                                                      ),
  666.                                     'D505IS' => array(
  667.                                                       'width'  => 240,
  668.                                                       'height' => 270,
  669.                                                       'depth'  => 262144,
  670.                                                       'color'  => 1
  671.                                                       ),
  672.                                     'P505IS' => array(
  673.                                                       'width'  => 240,
  674.                                                       'height' => 266,
  675.                                                       'depth'  => 65536,
  676.                                                       'color'  => 1
  677.                                                       ),
  678.                                     'N505IS' => array(
  679.                                                       'width'  => 240,
  680.                                                       'height' => 270,
  681.                                                       'depth'  => 262144,
  682.                                                       'color'  => 1
  683.                                                       ),
  684.                                     'SO505IS' => array(
  685.                                                        'width'  => 240,
  686.                                                        'height' => 256,
  687.                                                        'depth'  => 262144,
  688.                                                        'color'  => 1
  689.                                                        ),
  690.                                     'SH505IS' => array(
  691.                                                        'width'  => 240,
  692.                                                        'height' => 252,
  693.                                                        'depth'  => 262144,
  694.                                                        'color'  => 1
  695.                                                        ),
  696.                                     'F505IGPS' => array(
  697.                                                         'width'  => 240,
  698.                                                         'height' => 268,
  699.                                                         'depth'  => 262144,
  700.                                                         'color'  => 1
  701.                                                         ),
  702.                                     'D252I' => array(
  703.                                                      'width'  => 176,
  704.                                                      'height' => 198,
  705.                                                      'depth'  => 262144,
  706.                                                      'color'  => 1
  707.                                                      ),
  708.                                     'SH252I' => array(
  709.                                                       'width'  => 240,
  710.                                                       'height' => 252,
  711.                                                       'depth'  => 262144,
  712.                                                       'color'  => 1
  713.                                                       ),
  714.                                     'P252I' => array(
  715.                                                      'width'  => 132,
  716.                                                      'height' => 144,
  717.                                                      'depth'  => 65536,
  718.                                                      'color'  => 1
  719.                                                      ),
  720.                                     'N252I' => array(
  721.                                                      'width'  => 132,
  722.                                                      'height' => 140,
  723.                                                      'depth'  => 65536,
  724.                                                      'color'  => 1
  725.                                                      ),
  726.                                     'P252IS' => array(
  727.                                                       'width'  => 132,
  728.                                                       'height' => 144,
  729.                                                       'depth'  => 65536,
  730.                                                       'color'  => 1
  731.                                                       ),
  732.                                     'D506I' => array(
  733.                                                      'width'  => 240,
  734.                                                      'height' => 270,
  735.                                                      'depth'  => 262144,
  736.                                                      'color'  => 1
  737.                                                      ),
  738.                                     'F506I' => array(
  739.                                                      'width'  => 240,
  740.                                                      'height' => 268,
  741.                                                      'depth'  => 262144,
  742.                                                      'color'  => 1
  743.                                                      ),
  744.                                     'N506I' => array(
  745.                                                      'width'  => 240,
  746.                                                      'height' => 295,
  747.                                                      'depth'  => 262144,
  748.                                                      'color'  => 1
  749.                                                      ),
  750.                                     'P506IC' => array(
  751.                                                       'width'  => 240,
  752.                                                       'height' => 266,
  753.                                                       'depth'  => 65536,
  754.                                                       'color'  => 1
  755.                                                       ),
  756.                                     'SH506IC' => array(
  757.                                                        'width'  => 240,
  758.                                                        'height' => 252,
  759.                                                        'depth'  => 262144,
  760.                                                        'color'  => 1
  761.                                                        ),
  762.                                     'SO506IC' => array(
  763.                                                        'width'  => 240,
  764.                                                        'height' => 256,
  765.                                                        'depth'  => 262144,
  766.                                                        'color'  => 1
  767.                                                        ),
  768.                                     'N506IS' => array(
  769.                                                       'width'  => 240,
  770.                                                       'height' => 295,
  771.                                                       'depth'  => 262144,
  772.                                                       'color'  => 1
  773.                                                       ),
  774.                                     'SO506I' => array(
  775.                                                       'width'  => 240,
  776.                                                       'height' => 256,
  777.                                                       'depth'  => 262144,
  778.                                                       'color'  => 1
  779.                                                       ),
  780.                                     'SO506IS' => array(
  781.                                                        'width'  => 240,
  782.                                                        'height' => 256,
  783.                                                        'depth'  => 262144,
  784.                                                        'color'  => 1
  785.                                                        ),
  786.                                     'D253I' => array(
  787.                                                      'width'  => 176,
  788.                                                      'height' => 198,
  789.                                                      'depth'  => 262144,
  790.                                                      'color'  => 1
  791.                                                      ),
  792.                                     'N253I' => array(
  793.                                                      'width'  => 160,
  794.                                                      'height' => 180,
  795.                                                      'depth'  => 65536,
  796.                                                      'color'  => 1
  797.                                                      ),
  798.                                     'P253I' => array(
  799.                                                      'width'  => 132,
  800.                                                      'height' => 144,
  801.                                                      'depth'  => 65536,
  802.                                                      'color'  => 1
  803.                                                      ),
  804.                                     'D253IWM' => array(
  805.                                                      'width'  => 220,
  806.                                                      'height' => 144,
  807.                                                      'depth'  => 262144,
  808.                                                      'color'  => 1
  809.                                                      ),
  810.                                     'P253IS' => array(
  811.                                                       'width'  => 132,
  812.                                                       'height' => 144,
  813.                                                       'depth'  => 65536,
  814.                                                       'color'  => 1
  815.                                                       ),
  816.                                     'P213I' => array(
  817.                                                      'width'  => 132,
  818.                                                      'height' => 144,
  819.                                                      'depth'  => 65536,
  820.                                                      'color'  => 1
  821.                                                      ),
  822.  
  823.                                     // i-mode compliant HTML 5.0
  824.                                     // (FOMA 900i etc.)
  825.                                     'F900I' => array(
  826.                                                      'width'  => 230,
  827.                                                      'height' => 240,
  828.                                                      'depth'  => 262144,
  829.                                                      'color'  => 1
  830.                                                      ),
  831.                                     'N900I' => array(
  832.                                                      'width'  => 240,
  833.                                                      'height' => 269,
  834.                                                      'depth'  => 65536,
  835.                                                      'color'  => 1
  836.                                                      ),
  837.                                     'P900I' => array(
  838.                                                      'width'  => 240,
  839.                                                      'height' => 266,
  840.                                                      'depth'  => 65536,
  841.                                                      'color'  => 1
  842.                                                      ),
  843.                                     'SH900I' => array(
  844.                                                       'width'  => 240,
  845.                                                       'height' => 252,
  846.                                                       'depth'  => 262144,
  847.                                                       'color'  => 1
  848.                                                       ),
  849.                                     'F900IT' => array(
  850.                                                       'width'  => 230,
  851.                                                       'height' => 240,
  852.                                                       'depth'  => 262144,
  853.                                                       'color'  => 1
  854.                                                       ),
  855.                                     'P900IV' => array(
  856.                                                       'width'  => 240,
  857.                                                       'height' => 266,
  858.                                                       'depth'  => 262144,
  859.                                                       'color'  => 1
  860.                                                       ),
  861.                                     'N900IS' => array(
  862.                                                       'width'  => 240,
  863.                                                       'height' => 269,
  864.                                                       'depth'  => 65536,
  865.                                                       'color'  => 1
  866.                                                       ),
  867.                                     'D900I' => array(
  868.                                                      'width'  => 240,
  869.                                                      'height' => 270,
  870.                                                      'depth'  => 262144,
  871.                                                      'color'  => 1
  872.                                                      ),
  873.                                     'F900IC' => array(
  874.                                                       'width'  => 230,
  875.                                                       'height' => 240,
  876.                                                       'depth'  => 262144,
  877.                                                       'color'  => 1
  878.                                                       ),
  879.                                     'F880IES' => array(
  880.                                                        'width'  => 240,
  881.                                                        'height' => 256,
  882.                                                        'depth'  => 65536,
  883.                                                        'color'  => 1
  884.                                                        ),
  885.                                     'N900IL' => array(
  886.                                                       'width'  => 240,
  887.                                                       'height' => 269,
  888.                                                       'depth'  => 65536,
  889.                                                       'color'  => 1
  890.                                                       ),
  891.                                     'N900IG' => array(
  892.                                                       'width'  => 240,
  893.                                                       'height' => 269,
  894.                                                       'depth'  => 65536,
  895.                                                       'color'  => 1
  896.                                                       ),
  897.                                     'SH901IC' => array(
  898.                                                        'width'  => 240,
  899.                                                        'height' => 252,
  900.                                                        'depth'  => 262144,
  901.                                                        'color'  => 1
  902.                                                        ),
  903.                                     'F901IC' => array(
  904.                                                       'width'  => 230,
  905.                                                       'height' => 240,
  906.                                                       'depth'  => 262144,
  907.                                                       'color'  => 1
  908.                                                       ),
  909.                                     'N901IC' => array(
  910.                                                       'width'  => 240,
  911.                                                       'height' => 270,
  912.                                                       'depth'  => 65536,
  913.                                                       'color'  => 1
  914.                                                       ),
  915.                                     'D901I' => array(
  916.                                                       'width'  => 230,
  917.                                                       'height' => 240,
  918.                                                       'depth'  => 262144,
  919.                                                       'color'  => 1
  920.                                                       ),
  921.                                     'P901I' => array(
  922.                                                       'width'  => 240,
  923.                                                       'height' => 270,
  924.                                                       'depth'  => 65536,
  925.                                                       'color'  => 1
  926.                                                       ),
  927.                                     'F700I' => array(
  928.                                                       'width'  => 230,
  929.                                                       'height' => 240,
  930.                                                       'depth'  => 262144,
  931.                                                       'color'  => 1
  932.                                                       ),
  933.                                     'SH700I' => array(
  934.                                                       'width'  => 240,
  935.                                                       'height' => 252,
  936.                                                       'depth'  => 262144,
  937.                                                       'color'  => 1
  938.                                                       ),
  939.                                     'N700I' => array(
  940.                                                       'width'  => 240,
  941.                                                       'height' => 270,
  942.                                                       'depth'  => 65536,
  943.                                                       'color'  => 1
  944.                                                       ),
  945.                                     'P700I' => array(
  946.                                                       'width'  => 240,
  947.                                                       'height' => 270,
  948.                                                       'depth'  => 65536,
  949.                                                       'color'  => 1
  950.                                                       ),
  951.                                     'F700IS' => array(
  952.                                                       'width'  => 230,
  953.                                                       'height' => 240,
  954.                                                       'depth'  => 262144,
  955.                                                       'color'  => 1
  956.                                                       ),
  957.                                     'SH700IS' => array(
  958.                                                       'width'  => 240,
  959.                                                       'height' => 252,
  960.                                                       'depth'  => 262144,
  961.                                                       'color'  => 1
  962.                                                       ),
  963.  
  964.                                     'SH901IS' => array(
  965.                                                        'width'  => 240,
  966.                                                        'height' => 252,
  967.                                                        'depth'  => 262144,
  968.                                                        'color'  => 1
  969.                                                        ),
  970.                                     'F901IS' => array(
  971.                                                       'width'  => 230,
  972.                                                       'height' => 240,
  973.                                                       'depth'  => 262144,
  974.                                                       'color'  => 1
  975.                                                       ),
  976.                                     'D901IS' => array(
  977.                                                       'width'  => 230,
  978.                                                       'height' => 240,
  979.                                                       'depth'  => 262144,
  980.                                                       'color'  => 1
  981.                                                       ),
  982.                                     'P901IS' => array(
  983.                                                       'width'  => 240,
  984.                                                       'height' => 270,
  985.                                                       'depth'  => 65536,
  986.                                                       'color'  => 1
  987.                                                       ),
  988.                                     'N901IS' => array(
  989.                                                       'width'  => 240,
  990.                                                       'height' => 270,
  991.                                                       'depth'  => 65536,
  992.                                                       'color'  => 1
  993.                                                       ),
  994.                                     'SH851I' => array(
  995.                                                       'width'  => 240,
  996.                                                       'height' => 252,
  997.                                                       'depth'  => 262144,
  998.                                                       'color'  => 1
  999.                                                       )
  1000.                                     );
  1001.             }
  1002.         }
  1003.  
  1004.         return @$displayMapstrtoupper($model];
  1005.     }
  1006. }
  1007.  
  1008. /*
  1009.  * Local Variables:
  1010.  * mode: php
  1011.  * coding: iso-8859-1
  1012.  * tab-width: 4
  1013.  * c-basic-offset: 4
  1014.  * c-hanging-comment-ender-p: nil
  1015.  * indent-tabs-mode: nil
  1016.  * End:
  1017.  */
  1018. ?>

Documentation generated on Mon, 11 Mar 2019 14:16:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.