Ignore:
Timestamp:
2014/05/30 18:14:20 (10 years ago)
Author:
pineray
Message:

#2448 typo修正・ソース整形・ソースコメントの改善 for 2.13.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/util/SC_Utils.php

    r23463 r23477  
    693693     * @return integer 税金額 
    694694     */ 
    695     public function sfTax($price, $tax, $tax_rule) 
     695    public static function sfTax($price, $tax, $tax_rule) 
    696696    { 
    697697        $real_tax = $tax / 100; 
     
    713713     * @return integer 税金付与した金額 
    714714     */ 
    715     public function sfCalcIncTax($price, $tax, $tax_rule) 
     715    public static function sfCalcIncTax($price, $tax, $tax_rule) 
    716716    { 
    717717        return $price + SC_Utils_Ex::sfTax($price, $tax, $tax_rule); 
     
    723723        $adjust = pow(10 ,$pow-1); 
    724724 
    725         // 整数且つ0なければ桁数指定を行う 
     725        // 整数且つ0なければ桁数指定を行う 
    726726        if (SC_Utils_Ex::sfIsInt($adjust) and $pow > 1) { 
    727727            $ret = (round($value * $adjust)/$adjust); 
     
    741741     * @return int 
    742742     */ 
    743     public function sfPrePoint($price, $point_rate, $rule = POINT_RULE) 
     743    public static function sfPrePoint($price, $point_rate, $rule = POINT_RULE) 
    744744    { 
    745745        $real_point = $point_rate / 100; 
     
    813813    } 
    814814 
    815     /* 配列をキー名ごとの配列に変更する */ 
    816     public function sfSwapArray($array, $isColumnName = true) 
     815    /** 
     816     * 配列をキー名ごとの配列に変更する 
     817     * 
     818     * @param array $array 
     819     * @param bool $isColumnName 
     820     * @return array 
     821     */ 
     822    public static function sfSwapArray($array, $isColumnName = true) 
    817823    { 
    818824        $arrRet = array(); 
     
    837843     * $requires が指定された場合, $requires に含まれるキーの値のみを返す. 
    838844     * 
    839      * @param array 連想配列 
    840      * @param array 必須キーの配列 
     845     * @param array $hash 連想配列 
     846     * @param array $requires 必須キーの配列 
    841847     * @return array 連想配列の値のみの配列 
    842848     */ 
     
    899905    } 
    900906 
    901     // 二回以上繰り返されているスラッシュ[/]を一つに変換する。 
     907    /** 
     908     * 二回以上繰り返されているスラッシュ[/]を一つに変換する。 
     909     * 
     910     * @param string $istr 
     911     * @return string 
     912     */ 
    902913    public function sfRmDupSlash($istr) 
    903914    { 
     
    910921        } else { 
    911922            $str = $istr; 
     923            $head = ''; 
    912924        } 
    913925        $str = preg_replace('|[/]+|', '/', $str); 
Note: See TracChangeset for help on using the changeset viewer.