Ignore:
Timestamp:
2011/03/09 14:31:45 (15 years ago)
Author:
Seasoft
Message:

#627(ソース整形・ソースコメントの改善)

  • TAB
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_Mobile.php

    r20538 r20562  
    5555     */ 
    5656    function lfMobileConvertInputValue(&$value) { 
    57         if (is_array($value)) { 
    58             foreach($value as $key => $val ){ 
    59                 $this->lfMobileConvertInputValue($value[$key]); 
    60             } 
    61         } else { 
    62             // Shift JIS から内部エンコーディングに変換する。 
    63             $value = mb_convert_encoding($value, CHAR_CODE, 'SJIS'); 
    64             // SoftBank? 以外の絵文字は外字領域に含まれるため、この段階で除去される。 
    65             // SoftBank? の絵文字を除去する。 
    66             $value = preg_replace('/\\x1b\\$[^\\x0f]*\\x0f/', '', $value); 
    67         } 
     57        if (is_array($value)) { 
     58            foreach($value as $key => $val ){ 
     59                $this->lfMobileConvertInputValue($value[$key]); 
     60            } 
     61        } else { 
     62            // Shift JIS から内部エンコーディングに変換する。 
     63            $value = mb_convert_encoding($value, CHAR_CODE, 'SJIS'); 
     64            // SoftBank? 以外の絵文字は外字領域に含まれるため、この段階で除去される。 
     65            // SoftBank? の絵文字を除去する。 
     66            $value = preg_replace('/\\x1b\\$[^\\x0f]*\\x0f/', '', $value); 
     67        } 
    6868    } 
    6969 
Note: See TracChangeset for help on using the changeset viewer.