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/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; 
Note: See TracChangeset for help on using the changeset viewer.