Ignore:
Timestamp:
2007/02/25 00:33:58 (20 years ago)
Author:
rebelt
Message:

PEAR Net_UserAgent_Mobile 0.30.0 をインポートしました。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile.php

    r11398 r11456  
    1414 * @package    Net_UserAgent_Mobile 
    1515 * @author     KUBO Atsuhiro <[email protected]> 
    16  * @copyright  2003-2006 KUBO Atsuhiro <[email protected]> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <[email protected]> 
    1717 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    18  * @version    CVS: $Id: Mobile.php,v 1.25 2006/11/07 09:25:14 kuboa Exp $ 
     18 * @version    CVS: $Id: Mobile.php,v 1.27 2007/02/20 15:17:16 kuboa Exp $ 
    1919 * @since      File available since Release 0.1 
    2020 */ 
    … …  
    5959 * SYNOPSIS: 
    6060 * <code> 
    61  * require_once('Net/UserAgent/Mobile.php'); 
     61 * require_once 'Net/UserAgent/Mobile.php'; 
    6262 * 
    6363 * $agent = &Net_UserAgent_Mobile::factory($agent_string); 
    … …  
    8989 * @package    Net_UserAgent_Mobile 
    9090 * @author     KUBO Atsuhiro <[email protected]> 
    91  * @copyright  2003-2006 KUBO Atsuhiro <[email protected]> 
     91 * @copyright  2003-2007 KUBO Atsuhiro <[email protected]> 
    9292 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    93  * @version    Release: @package_version@ 
     93 * @version    Release: 0.30.0 
    9494 * @since      Class available since Release 0.1 
    9595 */ 
    … …  
    155155        } 
    156156        $className = "Net_UserAgent_Mobile_{$sub}"; 
    157         $include    = dirname(__FILE__) . "/Mobile/{$sub}.php"; 
    158157 
    159158        if (!class_exists($className)) { 
    160             if (!is_readable($include)) { 
     159            $file = dirname(__FILE__) . "/Mobile/{$sub}.php"; 
     160            if (!include_once $file) { 
    161161                return PEAR::raiseError(null, 
    162162                                        NET_USERAGENT_MOBILE_ERROR_NOT_FOUND, 
    163163                                        null, null, 
    164                                         "Unable to read the $include file", 
    165                                         'Net_UserAgent_Mobile_Error', true 
    166                                         ); 
    167             } 
    168             if (!include_once $include) { 
    169                 return PEAR::raiseError(null, 
    170                                         NET_USERAGENT_MOBILE_ERROR_NOT_FOUND, 
    171                                         null, null, 
    172                                         "Unable to include the $include file", 
     164                                        "Unable to include the $file file", 
    173165                                        'Net_UserAgent_Mobile_Error', true 
    174166                                        ); 
    … …  
    282274 * @package    Net_UserAgent_Mobile 
    283275 * @author     KUBO Atsuhiro <[email protected]> 
    284  * @copyright  2003-2006 KUBO Atsuhiro <[email protected]> 
     276 * @copyright  2003-2007 KUBO Atsuhiro <[email protected]> 
    285277 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    286  * @version    Release: @package_version@ 
     278 * @version    Release: 0.30.0 
    287279 * @since      Class available since Release 0.1 
    288280 */ 
Note: See TracChangeset for help on using the changeset viewer.