Ignore:
Timestamp:
2013/02/18 19:09:54 (11 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/helper/SC_Helper_FPDI.php

    r22051 r22567  
    66$GLOBALS[SJIS_widths] = $SJIS_widths; 
    77 
    8 class SC_Helper_FPDI extends PDF_Japanese { 
     8class SC_Helper_FPDI extends PDF_Japanese  
     9{ 
    910    /** 
    1011     * PDF_Japanese の明朝フォントに加えゴシックフォントを追加定義 
     
    1213     * @return void 
    1314     */ 
    14     function AddSJISFont() { 
     15    function AddSJISFont() 
     16    { 
    1517        parent::AddSJISFont(); 
    1618        $cw = $GLOBALS['SJIS_widths']; 
     
    2527     * PDF_Japanese#SJISMultiCell をベースにカスタマイズ。 
    2628     */ 
    27     function SJISMultiCellForFancyTable($w, $h, $txt, $border = 0, $align = 'L', $fill = 0) { 
     29    function SJISMultiCellForFancyTable($w, $h, $txt, $border = 0, $align = 'L', $fill = 0) 
     30    { 
    2831        $y = $this->y; 
    2932 
     
    145148     * FIXME: 後の列の高さが大きい場合、表示が乱れる。 
    146149     */ 
    147     function FancyTable($header, $data, $w) { 
     150    function FancyTable($header, $data, $w) 
     151    { 
    148152        // Colors, line width and bold font 
    149153        $this->SetFillColor(216, 216, 216); 
     
    186190    } 
    187191 
    188     function Text($x, $y, $txt) { 
     192    function Text($x, $y, $txt) 
     193    { 
    189194        parent::Text($x, $y, $this->lfConvSjis($txt)); 
    190195    } 
    191196 
    192     function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') { 
     197    function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') 
     198    { 
    193199        parent::Cell($w, $h, $this->lfConvSjis($txt), $border, $ln, $align, $fill, $link); 
    194200    } 
    195201 
    196202    // 文字コードSJIS変換 -> japanese.phpで使用出来る文字コードはSJIS-winのみ 
    197     function lfConvSjis($conv_str) { 
     203    function lfConvSjis($conv_str) 
     204    { 
    198205        return mb_convert_encoding($conv_str, 'SJIS-win', CHAR_CODE); 
    199206    } 
Note: See TracChangeset for help on using the changeset viewer.