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/pages/admin/total/LC_Page_Admin_Total.php

    r22239 r22567  
    3131 * @version $Id$ 
    3232 */ 
    33 class LC_Page_Admin_Total extends LC_Page_Admin_Ex { 
     33class LC_Page_Admin_Total extends LC_Page_Admin_Ex  
     34{ 
    3435 
    3536    // }}} 
     
    4142     * @return void 
    4243     */ 
    43     function init() { 
     44    function init() 
     45    { 
    4446        parent::init(); 
    4547        // GDライブラリのインストール判定 
     
    9193     * @return void 
    9294     */ 
    93     function process() { 
     95    function process() 
     96    { 
    9497        $this->action(); 
    9598        $this->sendResponse(); 
     
    101104     * @return void 
    102105     */ 
    103     function action() { 
     106    function action() 
     107    { 
    104108 
    105109        if (isset($_GET['draw_image']) && $_GET['draw_image'] != '') { 
     
    170174     * @return void 
    171175     */ 
    172     function destroy() { 
     176    function destroy() 
     177    { 
    173178        parent::destroy(); 
    174179    } 
    175180 
    176181    /* デフォルト値の取得 */ 
    177     function lfGetDateDefault() { 
     182    function lfGetDateDefault() 
     183    { 
    178184        $year = date('Y'); 
    179185        $month = date('m'); 
     
    202208 
    203209    /* パラメーター情報の初期化 */ 
    204     function lfInitParam(&$objFormParam) { 
     210    function lfInitParam(&$objFormParam) 
     211    { 
    205212        // デフォルト値の取得 
    206213        $arrList = $this->lfGetDateDefault(); 
     
    225232 
    226233    /* 入力内容のチェック */ 
    227     function lfCheckError(&$objFormParam) { 
     234    function lfCheckError(&$objFormParam) 
     235    { 
    228236 
    229237        $objFormParam->convParam(); 
     
    251259 
    252260    /* サブナビを移動しても日付が残るようにセッションに入力期間を記録する */ 
    253     function lfSaveDateSession($session, $arrForm) { 
     261    function lfSaveDateSession($session, $arrForm) 
     262    { 
    254263 
    255264        // session の初期化をする 
     
    266275 
    267276    /* 日付の初期値 */ 
    268     function lfGetDateInit() { 
     277    function lfGetDateInit() 
     278    { 
    269279        $search_startyear_m     = $search_startyear  = $search_endyear  = date('Y'); 
    270280        $search_startmonth_m    = $search_startmonth = $search_endmonth = date('m'); 
     
    275285 
    276286    /* フォームで入力された日付を適切な形にする */ 
    277     function lfSetStartEndDate(&$objFormParam) { 
     287    function lfSetStartEndDate(&$objFormParam) 
     288    { 
    278289        $arrRet = $objFormParam->getHashArray(); 
    279290 
     
    294305 
    295306    /* 折れ線グラフの作成 */ 
    296     function lfGetGraphLine($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate, $xincline) { 
     307    function lfGetGraphLine($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate, $xincline) 
     308    { 
    297309 
    298310        $ret_path = ''; 
     
    352364 
    353365    // 円グラフの作成 
    354     function lfGetGraphPie($arrResults, $keyname, $type, $title = '', $sdate = '', $edate = '') { 
     366    function lfGetGraphPie($arrResults, $keyname, $type, $title = '', $sdate = '', $edate = '') 
     367    { 
    355368 
    356369        $ret_path = ''; 
     
    396409 
    397410    // 棒グラフの作成 
    398     function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate) { 
     411    function lfGetGraphBar($arrResults, $keyname, $type, $xtitle, $ytitle, $sdate, $edate) 
     412    { 
    399413        $ret_path = ''; 
    400414 
     
    442456 
    443457    // グラフ用のPNGファイル名 
    444     function lfGetGraphPng($keyname) { 
     458    function lfGetGraphPng($keyname) 
     459    { 
    445460 
    446461        if ($_POST['search_startyear_m'] != '') { 
     
    453468 
    454469    // 会員、非会員集計のWHERE分の作成 
    455     function lfGetWhereMember($col_date, $sdate, $edate, $type, $col_member = 'customer_id') { 
     470    function lfGetWhereMember($col_date, $sdate, $edate, $type, $col_member = 'customer_id') 
     471    { 
    456472        $where = ''; 
    457473        // 取得日付の指定 
     
    496512 
    497513    /** 会員別集計 **/ 
    498     function lfGetOrderMember($type, $sdate, $edate) { 
     514    function lfGetOrderMember($type, $sdate, $edate) 
     515    { 
    499516        $objQuery = SC_Query_Ex::getSingletonInstance(); 
    500517 
     
    537554 
    538555    /** 商品別集計 **/ 
    539     function lfGetOrderProducts($type, $sdate, $edate) { 
     556    function lfGetOrderProducts($type, $sdate, $edate) 
     557    { 
    540558        $objQuery = SC_Query_Ex::getSingletonInstance(); 
    541559 
     
    574592 
    575593    /** 職業別集計 **/ 
    576     function lfGetOrderJob($type, $sdate, $edate) { 
     594    function lfGetOrderJob($type, $sdate, $edate) 
     595    { 
    577596        $objQuery = SC_Query_Ex::getSingletonInstance(); 
    578597        list($where, $arrWhereVal) = $this->lfGetWhereMember('dtb_order.create_date', $sdate, $edate, $type); 
     
    610629 
    611630    /** 年代別集計 **/ 
    612     function lfGetOrderAge($type, $sdate, $edate) { 
     631    function lfGetOrderAge($type, $sdate, $edate) 
     632    { 
    613633 
    614634        $objQuery = SC_Query_Ex::getSingletonInstance(); 
     
    648668    /** 期間別集計 **/ 
    649669    // todo あいだの日付埋める 
    650     function lfGetOrderTerm($type, $sdate, $edate) { 
     670    function lfGetOrderTerm($type, $sdate, $edate) 
     671    { 
    651672        $objQuery   = SC_Query_Ex::getSingletonInstance(); 
    652673 
     
    704725     * 期間中の日付を埋める 
    705726     */ 
    706     function lfAddBlankLine($arrResults, $type, $st, $ed) { 
     727    function lfAddBlankLine($arrResults, $type, $st, $ed) 
     728    { 
    707729 
    708730        $arrDateList = $this->lfDateTimeArray($type, $st, $ed); 
     
    730752     * 
    731753     */ 
    732     function lfDateTimeArray($type, $st, $ed) { 
     754    function lfDateTimeArray($type, $st, $ed) 
     755    { 
    733756        switch ($type) { 
    734757            case 'month': 
     
    771794     * 合計を付与する 
    772795     */ 
    773     function lfAddTotalLine($arrResults) { 
     796    function lfAddTotalLine($arrResults) 
     797    { 
    774798        // 検索結果が0でない場合 
    775799        if (count($arrResults) > 0) { 
     
    790814 
    791815    // 必要なカラムのみ抽出する(CSVデータで取得する) 
    792     function lfGetDataColCSV($arrData, $arrDataCol) { 
     816    function lfGetDataColCSV($arrData, $arrDataCol) 
     817    { 
    793818        $max = count($arrData); 
    794819        $csv_data = ''; 
     
    806831    } 
    807832 
    808     function lfGetCSVColum($page) { 
     833    function lfGetCSVColum($page) 
     834    { 
    809835        switch ($page) { 
    810836            // 商品別集計 
Note: See TracChangeset for help on using the changeset viewer.