Ignore:
Timestamp:
2013/08/26 12:42:34 (11 years ago)
Author:
kimoto
Message:

#2275 PEAR更新
不要なrequire_onceの削除
レガシーなPEARモジュールは使わない
SearchReplace?.phpのパスが間違っているので修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/module/Calendar/Decorator/Uri.php

    r20119 r23125  
    11<?php 
    22/* vim: set expandtab tabstop=4 shiftwidth=4: */ 
    3 // 
    4 // +----------------------------------------------------------------------+ 
    5 // | PHP Version 4                                                        | 
    6 // +----------------------------------------------------------------------+ 
    7 // | Copyright (c) 1997-2002 The PHP Group                                | 
    8 // +----------------------------------------------------------------------+ 
    9 // | This source file is subject to version 2.02 of the PHP license,      | 
    10 // | that is bundled with this package in the file LICENSE, and is        | 
    11 // | available at through the world-wide-web at                           | 
    12 // | http://www.php.net/license/3_0.txt.                                  | 
    13 // | If you did not receive a copy of the PHP license and are unable to   | 
    14 // | obtain it through the world-wide-web, please send a note to          | 
    15 // | license@php.net so we can mail you a copy immediately.               | 
    16 // +----------------------------------------------------------------------+ 
    17 // | Authors: Harry Fuecks <hfuecks@phppatterns.com>                      | 
    18 // |          Lorenzo Alberton <l dot alberton at quipo dot it>           | 
    19 // +----------------------------------------------------------------------+ 
    20 // 
    21 // $Id: Uri.php,v 1.3 2004/08/16 09:04:20 hfuecks Exp $ 
    22 // 
     3 
    234/** 
    24  * @package Calendar 
    25  * @version $Id: Uri.php,v 1.3 2004/08/16 09:04:20 hfuecks Exp $ 
     5 * Contains the Calendar_Decorator_Uri class 
     6 * 
     7 * PHP versions 4 and 5 
     8 * 
     9 * LICENSE: Redistribution and use in source and binary forms, with or without 
     10 * modification, are permitted provided that the following conditions are met: 
     11 * 1. Redistributions of source code must retain the above copyright 
     12 *    notice, this list of conditions and the following disclaimer. 
     13 * 2. Redistributions in binary form must reproduce the above copyright 
     14 *    notice, this list of conditions and the following disclaimer in the 
     15 *    documentation and/or other materials provided with the distribution. 
     16 * 3. The name of the author may not be used to endorse or promote products 
     17 *    derived from this software without specific prior written permission. 
     18 * 
     19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED 
     20 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
     21 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
     22 * IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY 
     23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
     24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
     25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 
     26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
     27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 
     28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     29 * 
     30 * @category  Date and Time 
     31 * @package   Calendar 
     32 * @author    Harry Fuecks <hfuecks@phppatterns.com> 
     33 * @author    Lorenzo Alberton <l.alberton@quipo.it> 
     34 * @copyright 2003-2007 Harry Fuecks, Lorenzo Alberton 
     35 * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause) 
     36 * @version   CVS: $Id: Uri.php 300729 2010-06-24 12:05:53Z quipo $ 
     37 * @link      http://pear.php.net/package/Calendar 
    2638 */ 
    2739 
     
    5062 * <code> 
    5163 * $Day = new Calendar_Day(2003, 10, 23); 
    52  * $Uri = & new Calendar_Decorator_Uri($Day); 
     64 * $Uri = new Calendar_Decorator_Uri($Day); 
    5365 * $Uri->setFragments('year', 'month', 'day'); 
    5466 * echo $Uri->getPrev(); // Displays year=2003&month=10&day=22 
    5567 * </code> 
    56  * @see Calendar_Util_Uri 
    57  * @package Calendar 
    58  * @access public 
     68 * 
     69 * @category  Date and Time 
     70 * @package   Calendar 
     71 * @author    Harry Fuecks <hfuecks@phppatterns.com> 
     72 * @author    Lorenzo Alberton <l.alberton@quipo.it> 
     73 * @copyright 2003-2007 Harry Fuecks, Lorenzo Alberton 
     74 * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause) 
     75 * @link      http://pear.php.net/package/Calendar 
     76 * @see       Calendar_Util_Uri 
     77 * @access    public 
    5978 */ 
    6079class Calendar_Decorator_Uri extends Calendar_Decorator 
     
    6281 
    6382    /** 
    64     * @var Calendar_Util_Uri 
    65     * @access private 
    66     */ 
     83     * @var Calendar_Util_Uri 
     84     * @access private 
     85     */ 
    6786    var $Uri; 
    6887 
    6988    /** 
    7089     * Constructs Calendar_Decorator_Uri 
    71      * @param object subclass of Calendar 
     90     * 
     91     * @param object &$Calendar subclass of Calendar 
     92     * 
    7293     * @access public 
    7394     */ 
     
    79100    /** 
    80101     * Sets the URI fragment names 
    81      * @param string URI fragment for year 
    82      * @param string (optional) URI fragment for month 
    83      * @param string (optional) URI fragment for day 
    84      * @param string (optional) URI fragment for hour 
    85      * @param string (optional) URI fragment for minute 
    86      * @param string (optional) URI fragment for second 
     102     * 
     103     * @param string $y URI fragment for year 
     104     * @param string $m (optional) URI fragment for month 
     105     * @param string $d (optional) URI fragment for day 
     106     * @param string $h (optional) URI fragment for hour 
     107     * @param string $i (optional) URI fragment for minute 
     108     * @param string $s (optional) URI fragment for second 
     109     * 
    87110     * @return void 
    88111     * @access public 
    89112     */ 
    90     function setFragments($y, $m=null, $d=null, $h=null, $i=null, $s=null) { 
    91         $this->Uri = & new Calendar_Util_Uri($y, $m, $d, $h, $i, $s); 
     113    function setFragments($y, $m = null, $d = null, $h = null, $i = null, $s = null) 
     114    { 
     115        $this->Uri = new Calendar_Util_Uri($y, $m, $d, $h, $i, $s); 
    92116    } 
    93117 
    94118    /** 
    95119     * Sets the separator string between fragments 
    96      * @param string separator e.g. / 
     120     * 
     121     * @param string $separator url fragment separator e.g. / 
     122     * 
    97123     * @return void 
    98124     * @access public 
     
    104130 
    105131    /** 
    106      * Puts Uri decorator into "scalar mode" - URI variable names are not 
    107      * returned 
    108      * @param boolean (optional) 
     132     * Puts Uri decorator into "scalar mode" - URI variable names are not returned 
     133     * 
     134     * @param boolean $state (optional) 
     135     * 
    109136     * @return void 
    110137     * @access public 
    111138     */ 
    112     function setScalar($state=true) 
     139    function setScalar($state = true) 
    113140    { 
    114141        $this->Uri->scalar = $state; 
     
    117144    /** 
    118145     * Gets the URI string for the previous calendar unit 
    119      * @param string calendar unit to fetch uri for (year,month,week or day etc) 
     146     * 
     147     * @param string $method calendar unit to fetch uri for (year, month, week or day etc) 
     148     * 
    120149     * @return string 
    121150     * @access public 
     
    128157    /** 
    129158     * Gets the URI string for the current calendar unit 
    130      * @param string calendar unit to fetch uri for (year,month,week or day etc) 
     159     * 
     160     * @param string $method calendar unit to fetch uri for (year,month,week or day etc) 
     161     * 
    131162     * @return string 
    132163     * @access public 
     
    139170    /** 
    140171     * Gets the URI string for the next calendar unit 
    141      * @param string calendar unit to fetch uri for (year,month,week or day etc) 
     172     * 
     173     * @param string $method calendar unit to fetch uri for (year,month,week or day etc) 
     174     * 
    142175     * @return string 
    143176     * @access public 
     
    147180        return $this->Uri->next($this, $method); 
    148181    } 
    149  
    150182} 
    151183?> 
Note: See TracChangeset for help on using the changeset viewer.