Ignore:
Timestamp:
2013/02/18 19:09:54 (13 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Date.php

    r22206 r22567  
    2323 
    2424/* 日時表示用クラス */ 
    25 class SC_Date { 
     25class SC_Date  
     26{ 
    2627    var $start_year; 
    2728    var $month; 
     
    3031 
    3132    // コンストラクタ 
    32     function __construct($start_year='', $end_year='') { 
     33    function __construct($start_year='', $end_year='') 
     34    { 
    3335        if ($start_year)  $this->setStartYear($start_year); 
    3436        if ($end_year)    $this->setEndYear($end_year); 
    3537    } 
    3638 
    37     function setStartYear($year) { 
     39    function setStartYear($year) 
     40    { 
    3841        $this->start_year = $year; 
    3942    } 
    4043 
    41     function getStartYear() { 
     44    function getStartYear() 
     45    { 
    4246        return $this->start_year; 
    4347    } 
    4448 
    45     function setEndYear($endYear) { 
     49    function setEndYear($endYear) 
     50    { 
    4651        $this->end_year = $endYear; 
    4752    } 
    4853 
    49     function getEndYear() { 
     54    function getEndYear() 
     55    { 
    5056        return $this->end_year; 
    5157    } 
    5258 
    53     function setMonth($month) { 
     59    function setMonth($month) 
     60    { 
    5461        $this->month = $month; 
    5562    } 
    5663 
    57     function setDay($day) { 
     64    function setDay($day) 
     65    { 
    5866        $this->day = $day; 
    5967    } 
     
    6977     * @param string $default_key 
    7078     */ 
    71     function getYear($year = '', $default_year = false, $default_key = '----') { 
     79    function getYear($year = '', $default_year = false, $default_key = '----') 
     80    { 
    7281        if ($year) $this->setStartYear($year); 
    7382 
     
    93102    } 
    94103 
    95     function getZeroYear($year = '') { 
     104    function getZeroYear($year = '') 
     105    { 
    96106        if ($year) $this->setStartYear($year); 
    97107 
     
    111121    } 
    112122 
    113     function getZeroMonth() { 
     123    function getZeroMonth() 
     124    { 
    114125 
    115126        $month_array = array(); 
     
    121132    }    
    122133 
    123     function getMonth($default = false) { 
     134    function getMonth($default = false) 
     135    { 
    124136        $month_array = array(); 
    125137 
     
    132144    }    
    133145 
    134     function getDay($default = false) { 
     146    function getDay($default = false) 
     147    { 
    135148        $day_array = array(); 
    136149 
     
    144157    } 
    145158 
    146     function getHour() { 
     159    function getHour() 
     160    { 
    147161 
    148162        $hour_array = array(); 
     
    154168    } 
    155169 
    156     function getMinutes() { 
     170    function getMinutes() 
     171    { 
    157172 
    158173        $minutes_array = array(); 
     
    164179    } 
    165180 
    166     function getMinutesInterval() { 
     181    function getMinutesInterval() 
     182    { 
    167183 
    168184        $minutes_array = array('00'=>'00', '30'=>'30'); 
Note: See TracChangeset for help on using the changeset viewer.