Ignore:
Timestamp:
2012/02/15 19:56:17 (12 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

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

    r21490 r21514  
    2323 
    2424/** TTFフォントファイル */ 
    25 define('FONT_REALFILE', DATA_REALDIR . "fonts/wlmaru20044.ttf"); 
     25define('FONT_REALFILE', DATA_REALDIR . 'fonts/wlmaru20044.ttf'); 
    2626 
    2727/** フォントサイズ */ 
     
    240240 
    241241    // 画像を出力する 
    242     function outputGraph($header = true, $filename = "") { 
     242    function outputGraph($header = true, $filename = '') { 
    243243        if ($header) { 
    244244            header('Content-type: image/png'); 
    245245        } 
    246246 
    247         if ($filename != "") { 
     247        if ($filename != '') { 
    248248            imagepng($this->image, $filename); 
    249249        } else { 
     
    290290         * 
    291291         */ 
    292         $text = mb_convert_encoding($text, "EUC-JP", CHAR_CODE); 
     292        $text = mb_convert_encoding($text, 'EUC-JP', CHAR_CODE); 
    293293        //$text = mb_convert_encoding($text, CHAR_CODE); 
    294294        if ($color != NULL) { 
     
    310310    // ログを出力する 
    311311    function debugPrint($text) { 
    312         $text = mb_convert_encoding($text, "UTF-8", CHAR_CODE); 
     312        $text = mb_convert_encoding($text, 'UTF-8', CHAR_CODE); 
    313313        if (!isset($this->text_top)) { 
    314314            $this->text_top = FONT_SIZE + LINE_PAD; 
     
    320320 
    321321    // カラーラベルを描画 
    322     function drawLegend($legend_max = "", $clabelbg = true) { 
     322    function drawLegend($legend_max = '', $clabelbg = true) { 
    323323        // 凡例が登録されていなければ中止 
    324324        if (count($this->arrLegend) <= 0) { 
     
    326326        } 
    327327 
    328         if ($legend_max != "") { 
     328        if ($legend_max != '') { 
    329329            $label_max = $legend_max; 
    330330        } else { 
     
    450450    function lfImageText($dst_image, $text, $font_size, $left, $top, $font, $arrRGB) { 
    451451        $color = ImageColorAllocate($dst_image, $arrRGB[0], $arrRGB[1], $arrRGB[2]); 
    452         $text = mb_convert_encoding($text, "UTF-8", CHAR_CODE); 
     452        $text = mb_convert_encoding($text, 'UTF-8', CHAR_CODE); 
    453453        // 表示角度 
    454454        $angle = 0; 
Note: See TracChangeset for help on using the changeset viewer.