Ignore:
Timestamp:
2013/08/24 23:33:52 (11 years ago)
Author:
kimoto
Message:

#2043 typo修正・ソース整形・ソースコメントの改善 for 2.13.0
PHP4的な書き方の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php

    r23098 r23124  
    3838     * @return void 
    3939     */ 
    40     function init() 
     40    public function init() 
    4141    { 
    4242        parent::init(); 
     
    5858     * @return void 
    5959     */ 
    60     function process() 
     60    public function process() 
    6161    { 
    6262        $this->action(); 
     
    6969     * @return void 
    7070     */ 
    71     function action() 
     71    public function action() 
    7272    { 
    7373        $objFormParam = new SC_FormParam_Ex(); 
     
    127127     * パラメーター情報の初期化 
    128128     * 
    129      * @param object $objFormParam SC_FormParamインスタンス 
    130      * @return void 
    131      */ 
    132     function lfInitParam(&$objFormParam) 
     129     * @param  object $objFormParam SC_FormParamインスタンス 
     130     * @return void 
     131     */ 
     132    public function lfInitParam(&$objFormParam) 
    133133    { 
    134134        $objFormParam->addParam('端末種別ID', 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    141141     * テンプレートをマスターデータに登録する. 
    142142     * 
    143      * @param string $template_code テンプレートコード 
    144      * @param integer $device_type_id 端末種別ID 
    145      * @return void 
    146      */ 
    147     function doUpdateMasterData($template_code, $device_type_id) 
     143     * @param  string  $template_code テンプレートコード 
     144     * @param  integer $device_type_id 端末種別ID 
     145     * @return void 
     146     */ 
     147    public function doUpdateMasterData($template_code, $device_type_id) 
    148148    { 
    149149        $masterData = new SC_DB_MasterData_Ex(); 
     
    178178     * この SQL は, 各端末に合わせて実行する必要がある 
    179179     * 
    180      * @param string $filepath SQLのファイルパス 
    181      * @return void 
    182      */ 
    183     function updateBloc($filepath) 
     180     * @param  string $filepath SQLのファイルパス 
     181     * @return void 
     182     */ 
     183    public function updateBloc($filepath) 
    184184    { 
    185185        $sql = file_get_contents($filepath); 
     
    200200     * テンプレートパッケージの削除. 
    201201     * 
    202      * @param string $template_code テンプレートコード 
    203      * @param integer $device_type_id 端末種別ID 
     202     * @param  string  $template_code テンプレートコード 
     203     * @param  integer $device_type_id 端末種別ID 
    204204     * @return boolean 成功した場合 true; 失敗した場合 false 
    205205     */ 
    206     function doDelete($template_code, $device_type_id) 
     206    public function doDelete($template_code, $device_type_id) 
    207207    { 
    208208        if ($template_code == $this->getTemplateName($device_type_id) 
    209209                || $template_code == $this->getTemplateName($device_type_id, true)) { 
    210210            $this->arrErr['err'] = '※ デフォルトテンプレートと、選択中のテンプレートは削除出来ません<br />'; 
     211 
    211212            return false; 
    212213        } else { 
     
    222223                $this->arrErr['err'] = $error; 
    223224                $objQuery->rollback(); 
     225 
    224226                return false; 
    225227            } 
     
    229231                $this->arrErr['err'] = $error; 
    230232                $objQuery->rollback(); 
     233 
    231234                return false; 
    232235            } 
     
    237240                $this->arrErr['err'] = $error; 
    238241                $objQuery->rollback(); 
     242 
    239243                return false; 
    240244            } 
    241245            $objQuery->commit(); 
     246 
    242247            return true; 
    243248        } 
     
    249254     * 失敗した場合は, エラーメッセージを出力し, false を返す. 
    250255     * 
    251      * @param string $template_code テンプレートコード 
    252      * @param integer $device_type_id 端末種別ID 
     256     * @param  string  $template_code テンプレートコード 
     257     * @param  integer $device_type_id 端末種別ID 
    253258     * @return boolean 成功した場合 true; 失敗した場合 false 
    254259     */ 
    255     function doRegister($template_code, $device_type_id) 
     260    public function doRegister($template_code, $device_type_id) 
    256261    { 
    257262        $tpl_dir = USER_TEMPLATE_REALDIR . $template_code . '/'; 
    258263        if (!is_dir($tpl_dir)) { 
    259264            $this->arrErr['err'] = '※ ' . $tpl_dir . 'が見つかりません<br />'; 
     265 
    260266            return false; 
    261267        } 
     
    281287     * 失敗した場合は, エラーメッセージを出力し, false を返す. 
    282288     * 
    283      * @param string $template_code テンプレートコード 
     289     * @param  string $template_code テンプレートコード 
    284290     * @return boolean 成功した場合 true; 失敗した場合 false 
    285291     */ 
    286     function doDownload($template_code) 
     292    public function doDownload($template_code) 
    287293    { 
    288294        $from_dir = USER_TEMPLATE_REALDIR . $template_code . '/'; 
     
    290296        if (SC_Utils_Ex::recursiveMkdir($to_dir) === false) { 
    291297            $this->arrErr['err'] = '※ ディレクトリの作成に失敗しました<br />'; 
     298 
    292299            return false; 
    293300        } 
     
    295302        if (SC_Helper_FileManager_Ex::downloadArchiveFiles(SMARTY_TEMPLATES_REALDIR . $template_code, $template_code) === false) { 
    296303            $this->arrErr['err'] = '※ アーカイブファイルの作成に失敗しました<br />'; 
     304 
    297305            return false; 
    298306        } 
     
    304312     * テンプレート情報を取得する. 
    305313     * 
    306      * @param integer $device_type_id 端末種別ID 
    307      * @return array テンプレート情報の配列 
    308      */ 
    309     function getAllTemplates($device_type_id) 
     314     * @param  integer $device_type_id 端末種別ID 
     315     * @return array   テンプレート情報の配列 
     316     */ 
     317    public function getAllTemplates($device_type_id) 
    310318    { 
    311319        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    317325     * テンプレート名を返す. 
    318326     * 
    319      * @param integer $device_type_id 端末種別ID 
    320      * @param boolean $isDefault デフォルトテンプレート名を返す場合 true 
    321      * @return string テンプレート名 
    322      */ 
    323     function getTemplateName($device_type_id, $isDefault = false) 
     327     * @param  integer $device_type_id 端末種別ID 
     328     * @param  boolean $isDefault      デフォルトテンプレート名を返す場合 true 
     329     * @return string  テンプレート名 
     330     */ 
     331    public function getTemplateName($device_type_id, $isDefault = false) 
    324332    { 
    325333        switch ($device_type_id) { 
Note: See TracChangeset for help on using the changeset viewer.