Ignore:
Timestamp:
2012/02/11 05:48:00 (12 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php

    r21420 r21481  
    5252        $this->tpl_subtitle = "プラグイン「{$this->arrPluginInfo['name']}」の設定"; 
    5353 
    54         if (empty($_POST["mode"])) { 
    55             $_POST["mode"] = ""; 
     54        if (empty($_POST['mode'])) { 
     55            $_POST['mode'] = ""; 
    5656        } 
    5757 
    58         if (empty($_GET["mode"])) { 
    59             $_GET["mode"] = ""; 
     58        if (empty($_GET['mode'])) { 
     59            $_GET['mode'] = ""; 
    6060        } 
    6161    } 
     
    6464     * Page のプロセス. 
    6565     * 
    66      * POST パラメーター "mode" が register の場合は登録処理を行う. 
    67      * 登録処理の後, 自ページをリロードし, GET パラメーター "mode" を付与する. 
    68      * 登録に成功し, GET パラメーター "mode" の値が success の場合は 
     66     * POST パラメーター 'mode' が register の場合は登録処理を行う. 
     67     * 登録処理の後, 自ページをリロードし, GET パラメーター 'mode' を付与する. 
     68     * 登録に成功し, GET パラメーター 'mode' の値が success の場合は 
    6969     * 「登録に成功しました」というメッセージをポップアップで表示する. 
    70      * 登録に失敗し, GET パラメーター "mode" の値が failure の場合は 
     70     * 登録に失敗し, GET パラメーター 'mode' の値が failure の場合は 
    7171     * 「登録に失敗しました」というメッセージをポップアップで表示する. 
    7272     * 
     
    7979        SC_Utils_Ex::sfIsSuccess(new SC_Session()); 
    8080 
    81         switch ($_POST["mode"]) { 
    82         case "register": 
     81        switch ($_POST['mode']) { 
     82        case 'register': 
    8383            if ($this->register($_POST['ga_ua'])) { 
    84                 SC_Response_Ex::reload(array("mode" => "success"), true); 
     84                SC_Response_Ex::reload(array('mode' => 'success'), true); 
    8585                exit; 
    8686            } else { 
    87                 SC_Response_Ex::reload(array("mode" => "failure"), true); 
     87                SC_Response_Ex::reload(array('mode' => 'failure'), true); 
    8888                exit; 
    8989            } 
     
    9393        } 
    9494 
    95         switch ($_GET["mode"]) { 
    96         case "success": 
     95        switch ($_GET['mode']) { 
     96        case 'success': 
    9797            $this->tpl_onload .= "window.alert('登録に成功しました。');"; 
    9898            break; 
    9999 
    100         case "failure": 
     100        case 'failure': 
    101101            $this->tpl_onload .= "window.alert('登録に失敗しました。');"; 
    102102            break; 
     
    124124 
    125125        $configFile = $this->arrPluginInfo['fullpath'] . "classes/pages/ga_config.php"; 
    126         $handle = fopen($configFile, "w"); 
     126        $handle = fopen($configFile, 'w'); 
    127127        if (!$handle) { 
    128128            return false; 
Note: See TracChangeset for help on using the changeset viewer.