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/graph/SC_Graph_Pie.php

    r22206 r22567  
    2323 
    2424// 円グラフ生成クラス 
    25 class SC_Graph_Pie extends SC_Graph_Base_Ex{ 
     25class SC_Graph_Pie extends SC_Graph_Base_Ex 
     26{ 
    2627    var $cw; 
    2728    var $ch; 
     
    3334 
    3435    // コンストラクタ 
    35     function __construct($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = PIE_LEFT, $top = PIE_TOP) { 
     36    function __construct($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = PIE_LEFT, $top = PIE_TOP) 
     37    { 
    3638        parent::__construct($bgw, $bgh, $left, $top); 
    3739        // サイズ設定 
     
    4244 
    4345    // データを360°値に変換する 
    44     function getCircleData($array) { 
     46    function getCircleData($array) 
     47    { 
    4548        $total = ''; 
    4649        $new_total = ''; 
     
    7376 
    7477    // 円の位置設定を行う 
    75     function setPosition($cx, $cy) { 
     78    function setPosition($cx, $cy) 
     79    { 
    7680        $this->cx = $cx; 
    7781        $this->cy = $cy; 
     
    7983 
    8084    // 円のサイズ設定を行う 
    81     function setSize($cw, $ch, $cz = 0) { 
     85    function setSize($cw, $ch, $cz = 0) 
     86    { 
    8287        $this->cw = $cw; 
    8388        $this->ch = $ch; 
     
    8691 
    8792    // 影の描画 
    88     function drawShade() { 
     93    function drawShade() 
     94    { 
    8995        $move = 1; 
    9096        for ($i = ($this->cy + $this->cz); $i <= ($this->cy + $this->cz + ($this->cz * PIE_SHADE_IMPACT)); $i++) { 
     
    95101 
    96102    // データをセットする 
    97     function setData($arrData) { 
     103    function setData($arrData) 
     104    { 
    98105        $this->arrData = array_values($arrData); 
    99106    } 
    100107 
    101108    // 円グラフを描画する 
    102     function drawGraph() { 
     109    function drawGraph() 
     110    { 
    103111        $x = $this->cx; 
    104112        $y = $this->cy; 
     
    198206 
    199207    // 円グラフのラベルを描画する 
    200     function drawLabel($arrRad) { 
     208    function drawLabel($arrRad) 
     209    { 
    201210        $rd_max = count($arrRad); 
    202211        $start = 0; 
Note: See TracChangeset for help on using the changeset viewer.