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の開始波括弧「{」のスタイルを修正。

Location:
branches/version-2_12-dev/data/class/pages/admin/contents
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents.php

    r22526 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Contents extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Contents extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'contents/index.tpl'; 
     
    6668     * @return void 
    6769     */ 
    68     function process() { 
     70    function process() 
     71    { 
    6972        $this->action(); 
    7073        $this->sendResponse(); 
     
    7679     * @return void 
    7780     */ 
    78     function action() { 
     81    function action() 
     82    { 
    7983 
    8084        $objDb = new SC_Helper_DB_Ex(); 
     
    161165     * @return void 
    162166     */ 
    163     function destroy() { 
     167    function destroy() 
     168    { 
    164169        parent::destroy(); 
    165170    } 
     
    170175     * @return Array エラー内容 
    171176     */ 
    172     function lfCheckError(&$objFormParam) { 
     177    function lfCheckError(&$objFormParam) 
     178    { 
    173179        $objErr = new SC_CheckError_Ex($objFormParam->getHashArray()); 
    174180        $objErr->arrErr = $objFormParam->checkError(); 
     
    181187     * @param Object $objFormParam 
    182188     */ 
    183     function lfInitParam(&$objFormParam) { 
     189    function lfInitParam(&$objFormParam) 
     190    { 
    184191        $objFormParam->addParam('news_id', 'news_id'); 
    185192        $objFormParam->addParam('日付(年)', 'year', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    198205     * @param Integer $member_id 登録した管理者のID 
    199206     */ 
    200     function lfNewsInsert($arrPost,$member_id) { 
     207    function lfNewsInsert($arrPost,$member_id) 
     208    { 
    201209        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    202210 
     
    221229    } 
    222230 
    223     function lfNewsUpdate($arrPost,$member_id) { 
     231    function lfNewsUpdate($arrPost,$member_id) 
     232    { 
    224233        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    225234 
     
    243252     * @return string 登録日を示す文字列 
    244253     */ 
    245     function getRegistDate($arrPost) { 
     254    function getRegistDate($arrPost) 
     255    { 
    246256        $registDate = $arrPost['year'] .'/'. $arrPost['month'] .'/'. $arrPost['day']; 
    247257        return $registDate; 
     
    253263     * @return int 
    254264     */ 
    255     function checkLinkMethod($link_method) { 
     265    function checkLinkMethod($link_method) 
     266    { 
    256267        if (strlen($link_method) == 0) { 
    257268            $link_method = 1; 
     
    264275     * @param Integer news_id ニュースID 
    265276     */ 
    266     function getNews($news_id = '') { 
     277    function getNews($news_id = '') 
     278    { 
    267279        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    268280        $col = '*, cast(news_date as date) as cast_news_date'; 
     
    284296     * @param Integer $news_id 
    285297     */ 
    286     function getRankByNewsId($news_id) { 
     298    function getRankByNewsId($news_id) 
     299    { 
    287300        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    288301        $col = 'rank'; 
     
    299312     * @param Integer $rank 
    300313     */ 
    301     function computeRankForDelete($news_id,$rank) { 
     314    function computeRankForDelete($news_id,$rank) 
     315    { 
    302316        SC_Helper_DB_Ex::sfDeleteRankRecord('dtb_news', 'news_id', $news_id); 
    303317    } 
     
    307321     * @param String $news_date 
    308322     */ 
    309     function splitNewsDate($news_date) { 
     323    function splitNewsDate($news_date) 
     324    { 
    310325        return explode('-', $news_date); 
    311326    } 
     
    315330     * @return Intger $max ランクの最大値の値 
    316331     */ 
    317     function getRankMax() { 
     332    function getRankMax() 
     333    { 
    318334        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    319335        $col = 'MAX(rank) as max'; 
     
    329345     * @param Integer $news_id 
    330346     */ 
    331     function getPostRank($news_id) { 
     347    function getPostRank($news_id) 
     348    { 
    332349        if (strlen($news_id) > 0 && is_numeric($news_id) == true) { 
    333350            $key = 'pos-' . $news_id; 
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CSV.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Contents_CSV extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Contents_CSV extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'contents/csv.tpl'; 
     
    6163     * @return void 
    6264     */ 
    63     function process() { 
     65    function process() 
     66    { 
    6467        $this->action(); 
    6568        $this->sendResponse(); 
     
    7174     * @return void 
    7275     */ 
    73     function action() { 
     76    function action() 
     77    { 
    7478 
    7579        // パラメーター管理クラス 
     
    117121     * @return void 
    118122     */ 
    119     function lfInitParam(&$objFormParam) { 
     123    function lfInitParam(&$objFormParam) 
     124    { 
    120125        $objFormParam->addParam('編集種別', 'tpl_subno_csv', STEXT_LEN, 'a', array('ALNUM_CHECK', 'MAX_LENGTH_CHECK'), 'product'); 
    121126        $objFormParam->addParam('出力設定リスト', 'output_list', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK', 'EXIST_CHECK')); 
     
    131136     * @return array SwapArrayしたカラム設定 
    132137     */ 
    133     function lfGetCSVColumn($csv_id, $csv_status_flg = '', $order ='rank, no') { 
     138    function lfGetCSVColumn($csv_id, $csv_status_flg = '', $order ='rank, no') 
     139    { 
    134140        $objCSV = new SC_Helper_CSV_Ex(); 
    135141        if (SC_Utils_Ex::sfIsInt($csv_id)) { 
     
    152158     * @return array 選択済みカラム列情報 
    153159     */ 
    154     function lfGetSelected($csv_id) { 
     160    function lfGetSelected($csv_id) 
     161    { 
    155162        $arrData = $this->lfGetCSVColumn($csv_id, CSV_COLUMN_STATUS_FLG_ENABLE); 
    156163        if (!isset($arrData['no'])) { 
     
    166173     * @return array 選択済みカラム列情報 
    167174     */ 
    168     function lfGetOptions($csv_id) { 
     175    function lfGetOptions($csv_id) 
     176    { 
    169177        $arrData = $this->lfGetCSVColumn($csv_id); 
    170178        if (!isset($arrData['no'])) { 
     
    181189     * @return void 
    182190     */ 
    183     function destroy() { 
     191    function destroy() 
     192    { 
    184193        parent::destroy(); 
    185194    } 
     
    191200     * @return integer CSV_ID 
    192201     */ 
    193     function lfGetCsvId($subno_csv) { 
     202    function lfGetCsvId($subno_csv) 
     203    { 
    194204        $objCSV = new SC_Helper_CSV_Ex(); 
    195205        $arrKey = array_keys($objCSV->arrSubnavi,$subno_csv); 
     
    209219     * @return boolean 成功:true 
    210220     */ 
    211     function lfSetDefaultCsvOutput($csv_id) { 
     221    function lfSetDefaultCsvOutput($csv_id) 
     222    { 
    212223        $arrData = $this->lfGetCSVColumn($csv_id, '', $order = 'no'); 
    213224        if (!isset($arrData['no'])) { 
     
    224235     * @return boolean 成功:true 
    225236     */ 
    226     function lfUpdCsvOutput($csv_id, $arrData = array()) { 
     237    function lfUpdCsvOutput($csv_id, $arrData = array()) 
     238    { 
    227239        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    228240        // ひとまず、全部使用しないで更新する 
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CsvSql.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Contents_CsvSql extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Contents_CsvSql extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'contents/csv_sql.tpl'; 
     
    5759     * @return void 
    5860     */ 
    59     function process() { 
     61    function process() 
     62    { 
    6063        $this->action(); 
    6164        $this->sendResponse(); 
     
    6770     * @return void 
    6871     */ 
    69     function action() { 
     72    function action() 
     73    { 
    7074        // パラメーター管理クラス 
    7175        $objFormParam = new SC_FormParam_Ex(); 
     
    142146     * @return void 
    143147     */ 
    144     function lfInitParam(&$objFormParam) { 
     148    function lfInitParam(&$objFormParam) 
     149    { 
    145150        $objFormParam->addParam('SQL ID', 'sql_id', INT_LEN, 'n', array('NUM_CHECK','MAX_LENGTH_CHECK')); 
    146151        $objFormParam->addParam('CSV出力対象SQL ID', 'csv_output_id', INT_LEN, 'n', array('NUM_CHECK','MAX_LENGTH_CHECK'), '', false); 
     
    156161     * @return array エラー配列 
    157162     */ 
    158     function lfCheckConfirmError(&$objFormParam) { 
     163    function lfCheckConfirmError(&$objFormParam) 
     164    { 
    159165        // パラメーターの基本チェック 
    160166        $arrErr = $objFormParam->checkError(); 
     
    183189     * @return array エラー配列 
    184190     */ 
    185     function lfCheckPreviewError(&$objFormParam) { 
     191    function lfCheckPreviewError(&$objFormParam) 
     192    { 
    186193        // パラメーターの基本チェック 
    187194        $arrErr = $objFormParam->checkError(); 
     
    202209     * @return array エラー配列 
    203210     */ 
    204     function lfCheckDeleteError(&$objFormParam) { 
     211    function lfCheckDeleteError(&$objFormParam) 
     212    { 
    205213        // パラメーターの基本チェック 
    206214        $arrErr = $objFormParam->checkError(); 
     
    220228     * @return array エラー配列 
    221229     */ 
    222     function lfCheckOutputError(&$objFormParam) { 
     230    function lfCheckOutputError(&$objFormParam) 
     231    { 
    223232        // パラメーターの基本チェック 
    224233        $arrErr = $objFormParam->checkError(); 
     
    237246     * @return void 
    238247     */ 
    239     function destroy() { 
     248    function destroy() 
     249    { 
    240250        parent::destroy(); 
    241251    } 
     
    246256     * @return array テーブル名一覧 
    247257     */ 
    248     function lfGetTableList() { 
     258    function lfGetTableList() 
     259    { 
    249260        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    250261        // 実テーブル上のカラム設定を見に行く仕様に変更 ref #476 
     
    270281     * @return array カラム一覧の配列 
    271282     */ 
    272     function lfGetColList($table) { 
     283    function lfGetColList($table) 
     284    { 
    273285        if (SC_Utils_Ex::isBlank($table)) { 
    274286            return array(); 
     
    288300     * @return array 取得結果の配列 
    289301     */ 
    290     function lfGetSqlList($where = '' , $arrVal = array()) { 
     302    function lfGetSqlList($where = '' , $arrVal = array()) 
     303    { 
    291304        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    292305        $table = 'dtb_csv_sql'; 
     
    301314     * @return string エラー内容 
    302315     */ 
    303     function lfCheckSQL($sql) { 
     316    function lfCheckSQL($sql) 
     317    { 
    304318        // FIXME: 意図的に new SC_Query しています。 force_runをtrueにする必要があるので.本当はqueryの引数で制御したい。ref SC_Query 
    305319        $objQuery = new SC_Query_Ex('', true); 
     
    319333     * @return mixed 表示用パラメーター 
    320334     */ 
    321     function lfGetSqlData(&$objFormParam) { 
     335    function lfGetSqlData(&$objFormParam) 
     336    { 
    322337        // 編集中データがある場合 
    323338        if (!SC_Utils_Ex::isBlank($objFormParam->getValue('sql_name')) 
     
    340355     * @return void 
    341356     */ 
    342     function lfDoCsvOutput($sql_id) { 
     357    function lfDoCsvOutput($sql_id) 
     358    { 
    343359        $arrData = $this->lfGetSqlList('sql_id = ?', array($sql_id)); 
    344360        $sql = 'SELECT ' . $arrData[0]['csv_sql'] . ' '; 
     
    371387     * @return integer $sql_id SQL_IDを返す 
    372388     */ 
    373     function lfUpdData($sql_id, $arrSqlVal) { 
     389    function lfUpdData($sql_id, $arrSqlVal) 
     390    { 
    374391        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    375392        $table = 'dtb_csv_sql'; 
     
    395412     * @return boolean 実行結果 true:成功 
    396413     */ 
    397     function lfDelData($sql_id) { 
     414    function lfDelData($sql_id) 
     415    { 
    398416        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    399417        $table = 'dtb_csv_sql'; 
     
    414432     * @return array 不許可ワード配列 
    415433     */ 
    416     function lfGetSqlDenyList() { 
     434    function lfGetSqlDenyList() 
     435    { 
    417436        $arrList = array(';' 
    418437            ,'CREATE\s' 
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Contents_FileManager extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Contents_FileManager extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'contents/file_manager.tpl'; 
     
    5759     * @return void 
    5860     */ 
    59     function process() { 
     61    function process() 
     62    { 
    6063        $this->action(); 
    6164        $this->sendResponse(); 
     
    6770     * @return void 
    6871     */ 
    69     function action() { 
     72    function action() 
     73    { 
    7074 
    7175        // フォーム操作クラス 
     
    205209     * @return void 
    206210     */ 
    207     function destroy() { 
     211    function destroy() 
     212    { 
    208213        parent::destroy(); 
    209214    } 
     
    215220     * @return void 
    216221     */ 
    217     function lfInitParam(&$objFormParam) { 
     222    function lfInitParam(&$objFormParam) 
     223    { 
    218224        // 共通定義 
    219225        $this->lfInitParamCommon($objFormParam); 
     
    226232     * @return void 
    227233     */ 
    228     function lfInitParamModeMove(&$objFormParam) { 
     234    function lfInitParamModeMove(&$objFormParam) 
     235    { 
    229236        // 共通定義 
    230237        $this->lfInitParamCommon($objFormParam); 
     
    238245     * @return void 
    239246     */ 
    240     function lfInitParamModeView(&$objFormParam) { 
     247    function lfInitParamModeView(&$objFormParam) 
     248    { 
    241249        // 共通定義 
    242250        $this->lfInitParamCommon($objFormParam); 
     
    250258     * @return void 
    251259     */ 
    252     function lfInitParamModeCreate(&$objFormParam) { 
     260    function lfInitParamModeCreate(&$objFormParam) 
     261    { 
    253262        // 共通定義 
    254263        $this->lfInitParamCommon($objFormParam); 
     
    263272     * @return void 
    264273     */ 
    265     function lfInitParamCommon(&$objFormParam) { 
     274    function lfInitParamCommon(&$objFormParam) 
     275    { 
    266276        $objFormParam->addParam('ルートディレクトリ', 'top_dir', MTEXT_LEN, 'a', array()); 
    267277        $objFormParam->addParam('現在の階層ディレクトリ', 'now_dir', MTEXT_LEN, 'a', array()); 
     
    277287     * @return void 
    278288     */ 
    279     function lfInitFile(&$objUpFile) { 
     289    function lfInitFile(&$objUpFile) 
     290    { 
    280291        $objUpFile->addFile('ファイル', 'upload_file', array(), FILE_SIZE, true, 0, 0, false); 
    281292    } 
     
    287298     * @return array $setParam テンプレートに渡す値 
    288299     */ 
    289     function createSetParam($arrVal) { 
     300    function createSetParam($arrVal) 
     301    { 
    290302        $setParam = $arrVal; 
    291303        // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する 
     
    305317     * @return void 
    306318     */ 
    307     function setDispParam($key, $val) { 
     319    function setDispParam($key, $val) 
     320    { 
    308321        $this->$key = $val; 
    309322    } 
     
    316329     * @return boolean ディレクトリ作成できたかどうか 
    317330     */ 
    318     function tryCreateDir($objFileManager, $objFormParam) { 
     331    function tryCreateDir($objFileManager, $objFormParam) 
     332    { 
    319333        $create_dir_flg = false; 
    320334        $create_dir = rtrim($objFormParam->getValue('now_dir'), '/'); 
     
    332346     * @return boolean ファイル表示するかどうか 
    333347     */ 
    334     function tryView(&$objFormParam) { 
     348    function tryView(&$objFormParam) 
     349    { 
    335350        $view_flg = false; 
    336351        $now_dir = $this->lfCheckSelectDir($objFormParam, dirname($objFormParam->getValue('select_file'))); 
     
    348363     * @return void 
    349364     */ 
    350     function setParentDir($objFormParam) { 
     365    function setParentDir($objFormParam) 
     366    { 
    351367        $parent_dir = $this->lfGetParentDir($objFormParam->getValue('now_dir')); 
    352368        $this->setDispParam('tpl_parent_dir', $parent_dir); 
     
    359375     * @return void 
    360376     */ 
    361     function setDispPath($objFormParam) { 
     377    function setDispPath($objFormParam) 
     378    { 
    362379        $tpl_now_dir = ''; 
    363380        // Windows 環境で DIRECTORY_SEPARATOR が JavaScript に渡るとエスケープ文字と勘違いするので置換 
     
    375392     * @return void 
    376393     */ 
    377     function setDispError($key, $value) { 
     394    function setDispError($key, $value) 
     395    { 
    378396        // 既にエラーがある場合は、処理しない 
    379397        if (SC_Utils_Ex::isBlank($this->arrErr[$key])) { 
     
    388406     * @return void 
    389407     */ 
    390     function setTplOnLoad($tpl_onload) { 
     408    function setTplOnLoad($tpl_onload) 
     409    { 
    391410        $this->tpl_onload .= $tpl_onload; 
    392411    } 
     
    399418     * @return string $select_dir 選択ディレクトリ 
    400419     */ 
    401     function lfCheckSelectDir($objFormParam, $dir) { 
     420    function lfCheckSelectDir($objFormParam, $dir) 
     421    { 
    402422        $select_dir = ''; 
    403423        $top_dir = $objFormParam->getValue('top_dir'); 
     
    424444     * @return string $parent_dir 親ディレクトリ 
    425445     */ 
    426     function lfGetParentDir($dir) { 
     446    function lfGetParentDir($dir) 
     447    { 
    427448        $parent_dir = ''; 
    428449        $dir = rtrim($dir, '/'); 
     
    443464     * @return void 
    444465     */ 
    445     function setDispTree($objFileManager, $objFormParam) { 
     466    function setDispTree($objFileManager, $objFormParam) 
     467    { 
    446468        $tpl_onload = ''; 
    447469        // ツリーを表示する divタグid, ツリー配列変数名, 現在ディレクトリ, 選択ツリーhidden名, ツリー状態hidden名, mode hidden名 
     
    475497     * @return void 
    476498     */ 
    477     function setIsTopDir($objFormParam) { 
     499    function setIsTopDir($objFormParam) 
     500    { 
    478501        // トップディレクトリか調査 
    479502        $is_top_dir = false; 
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileView.php

    r22206 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Contents_FileView extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Contents_FileView extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648    } 
     
    5153     * @return void 
    5254     */ 
    53     function process() { 
     55    function process() 
     56    { 
    5457        $this->action(); 
    5558        $this->sendResponse(); 
     
    6164     * @return void 
    6265     */ 
    63     function action() { 
     66    function action() 
     67    { 
    6468 
    6569        switch ($this->getMode()) { 
     
    8993     * @return void 
    9094     */ 
    91     function destroy() { 
     95    function destroy() 
     96    { 
    9297        parent::destroy(); 
    9398    } 
     
    99104     * @return void 
    100105     */ 
    101     function lfInitParam(&$objFormParam) { 
     106    function lfInitParam(&$objFormParam) 
     107    { 
    102108        $objFormParam->addParam('ファイル名', 'file', MTEXT_LEN, 'a', array('EXIST_CHECK')); 
    103109    } 
     
    109115     * @return boolen $file_check_flg エラーチェックの結果 
    110116     */ 
    111     function checkErrorDispFile($objFormParam) { 
     117    function checkErrorDispFile($objFormParam) 
     118    { 
    112119        $file_check_flg = false; 
    113120 
     
    127134     * @return void 
    128135     */ 
    129     function execFileView($objFormParam) { 
     136    function execFileView($objFormParam) 
     137    { 
    130138        $file = $objFormParam->getValue('file'); 
    131139 
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php

    r22559 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Contents_Recommend extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Contents_Recommend extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainpage = 'contents/recommend.tpl'; 
     
    5860     * @return void 
    5961     */ 
    60     function process() { 
     62    function process() 
     63    { 
    6164        $this->action(); 
    6265        $this->sendResponse(); 
     
    6871     * @return void 
    6972     */ 
    70     function action() { 
     73    function action() 
     74    { 
    7175        $objFormParam = new SC_FormParam_Ex(); 
    7276        $this->lfInitParam($objFormParam); 
     
    143147     * @return void 
    144148     */ 
    145     function destroy() { 
     149    function destroy() 
     150    { 
    146151        parent::destroy(); 
    147152    } 
     
    151156     * @param Object $objFormParam 
    152157     */ 
    153     function lfInitParam(&$objFormParam) { 
     158    function lfInitParam(&$objFormParam) 
     159    { 
    154160        $objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    155161        $objFormParam->addParam('カテゴリID', 'category_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    163169     * @return Array エラー内容 
    164170     */ 
    165     function lfCheckError(&$objFormParam) { 
     171    function lfCheckError(&$objFormParam) 
     172    { 
    166173        $objErr = new SC_CheckError_Ex($objFormParam->getHashArray()); 
    167174        $objErr->arrErr = $objFormParam->checkError(); 
     
    173180     * @return Array $arrReturnProducts データベースに登録されているおすすめ商品の配列 
    174181     */ 
    175     function getRecommendProducts() { 
     182    function getRecommendProducts() 
     183    { 
    176184        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    177185        $col = 'dtb_products.name,dtb_products.main_list_image,dtb_best_products.*,dtb_products.status'; 
     
    194202     * @param Integer $member_id 登録した管理者を示すID 
    195203     */ 
    196     function insertRecommendProduct($arrPost,$member_id) { 
     204    function insertRecommendProduct($arrPost,$member_id) 
     205    { 
    197206        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    198207        // 古いおすすめ商品のデータを削除する。 
     
    215224     * @param Array $arrPost POSTの値を格納した配列 
    216225     */ 
    217     function deleteProduct($arrPost) { 
     226    function deleteProduct($arrPost) 
     227    { 
    218228        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    219229        $table = 'dtb_best_products'; 
     
    228238     * @return Array $arrProduct 商品のデータを格納した配列 
    229239     */ 
    230     function getProduct($product_id) { 
     240    function getProduct($product_id) 
     241    { 
    231242        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    232243        $col = 'product_id,main_list_image,name'; 
     
    243254     * @param Array $arrItems フロントに表示される商品の情報を格納した配列 
    244255     */ 
    245     function setProducts($arrPost,$arrItems) { 
     256    function setProducts($arrPost,$arrItems) 
     257    { 
    246258        $arrProduct = $this->getProduct($arrPost['product_id']); 
    247259        if (count($arrProduct) > 0) { 
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php

    r22559 r22567  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Contents_RecommendSearch extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Contents_RecommendSearch extends LC_Page_Admin_Ex  
     35{ 
    3536 
    3637    // }}} 
     
    4243     * @return void 
    4344     */ 
    44     function init() { 
     45    function init() 
     46    { 
    4547        parent::init(); 
    4648        $this->tpl_mainno = 'contents'; 
     
    5557     * @return void 
    5658     */ 
    57     function process() { 
     59    function process() 
     60    { 
    5861        $this->action(); 
    5962        $this->sendResponse(); 
     
    6568     * @return void 
    6669     */ 
    67     function action() { 
     70    function action() 
     71    { 
    6872 
    6973        $objDb = new SC_Helper_DB_Ex(); 
     
    113117     * @return void 
    114118     */ 
    115     function destroy() { 
     119    function destroy() 
     120    { 
    116121        parent::destroy(); 
    117122    } 
     
    121126     * @param Object $objFormParam 
    122127     */ 
    123     function lfInitParam(&$objFormParam) { 
     128    function lfInitParam(&$objFormParam) 
     129    { 
    124130        $objFormParam->addParam('商品ID', 'search_name', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 
    125131        $objFormParam->addParam('商品ID', 'search_category_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK','NUM_CHECK')); 
     
    134140     * @return Array エラー内容 
    135141     */ 
    136     function lfCheckError(&$objFormParam) { 
     142    function lfCheckError(&$objFormParam) 
     143    { 
    137144        $objErr = new SC_CheckError_Ex($objFormParam->getHashArray()); 
    138145        $objErr->arrErr = $objFormParam->checkError(); 
     
    146153     * @param SC_FormParam $objFormParam 
    147154     */ 
    148     function createWhere(&$objFormParam,&$objDb) { 
     155    function createWhere(&$objFormParam,&$objDb) 
     156    { 
    149157        $arrForm = $objFormParam->getHashArray(); 
    150158        $where = 'alldtl.del_flg = 0'; 
     
    191199     * @param SC_Product $objProduct 
    192200     */ 
    193     function getLineCount($whereAndBind,&$objProduct) { 
     201    function getLineCount($whereAndBind,&$objProduct) 
     202    { 
    194203        $where = $whereAndBind['where']; 
    195204        $bind = $whereAndBind['bind']; 
     
    206215     * @param SC_Product $objProduct 
    207216     */ 
    208     function getProducts($whereAndBind,&$objProduct, $page_max, $startno) { 
     217    function getProducts($whereAndBind,&$objProduct, $page_max, $startno) 
     218    { 
    209219        $where = $whereAndBind['where']; 
    210220        $bind = $whereAndBind['bind']; 
     
    223233     * @param SC_Product $objProduct 
    224234     */ 
    225     function getProductList($arrProductId, &$objProduct) { 
     235    function getProductList($arrProductId, &$objProduct) 
     236    { 
    226237        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    227238 
Note: See TracChangeset for help on using the changeset viewer.