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

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

Location:
branches/version-2_12-dev/data/class/graph
Files:
3 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; 
  • branches/version-2_12-dev/data/class/graph/SC_Graph_Line.php

    r21490 r21514  
    6262    function drawYTitle() { 
    6363        // Y軸にタイトルを入れる 
    64         if ($this->YTitle != "") { 
     64        if ($this->YTitle != '') { 
    6565            $text_width = $this->getTextWidth($this->YTitle, FONT_SIZE); 
    6666            $x_pos = $this->left - ($text_width / 2); 
     
    7373    function drawXTitle() { 
    7474        // Y軸にタイトルを入れる 
    75         if ($this->XTitle != "") { 
     75        if ($this->XTitle != '') { 
    7676            $text_width = $this->getTextWidth($this->XTitle, FONT_SIZE); 
    7777            $x_pos = $this->left + $this->area_width - ($text_width / 2) + 30; 
  • branches/version-2_12-dev/data/class/graph/SC_Graph_Pie.php

    r21490 r21514  
    4343    // データを360°値に変換する 
    4444    function getCircleData($array) { 
    45         $total = ""; 
    46         $new_total = ""; 
     45        $total = ''; 
     46        $new_total = ''; 
    4747        if (!is_array($array)) { 
    4848            return; 
     
    6464            $arrRet[] = $ret; 
    6565            // パーセント表示用 
    66             $this->arrLabel[] = round($val * $p_rate) . " %"; 
     66            $this->arrLabel[] = round($val * $p_rate) . ' %'; 
    6767            $cnt++; 
    6868        } 
Note: See TracChangeset for help on using the changeset viewer.