Ignore:
Timestamp:
2013/05/02 18:11:36 (13 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

Location:
branches/version-2_12-dev/data/class/pages/upgrade
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/upgrade/LC_Page_Upgrade_Base.php

    r22567 r22796  
    1212 * @version $Id$ 
    1313 */ 
    14 class LC_Page_Upgrade_Base extends LC_Page_Ex  
    15 { 
    16     function isValidIP() 
    17     { 
     14class LC_Page_Upgrade_Base extends LC_Page_Ex { 
     15    function isValidIP() { 
    1816        $objLog  = new LC_Upgrade_Helper_Log; 
    1917        $masterData = new SC_DB_MasterData_Ex(); 
     
    3634     * @return boolean 
    3735     */ 
    38     function autoUpdateEnable($product_id) 
    39     { 
     36    function autoUpdateEnable($product_id) { 
    4037        $where = 'module_id = ?'; 
    4138        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    5855     * @return string|object レスポンスボディ|エラー時にはPEAR::Errorオブジェクトを返す. 
    5956     */ 
    60     function request($mode, $arrParams = array(), $arrCookies = array()) 
    61     { 
     57    function request($mode, $arrParams = array(), $arrCookies = array()) { 
    6258        $objReq = new HTTP_Request(); 
    6359        $objReq->setUrl(OSTORE_URL . 'upgrade/index.php'); 
     
    8076    } 
    8177 
    82     function isLoggedInAdminPage() 
    83     { 
     78    function isLoggedInAdminPage() { 
    8479        $objSess = new SC_Session_Ex(); 
    8580 
     
    9590     * @return string 
    9691     */ 
    97     function createSeed() 
    98     { 
     92    function createSeed() { 
    9993        return sha1(uniqid(rand(), true) . time()); 
    10094    } 
    10195 
    102     function getPublicKey() 
    103     { 
     96    function getPublicKey() { 
    10497        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    10598        $arrRet = $objQuery->select('*', 'dtb_ownersstore_settings'); 
     
    112105     * オーナーズストアからの POST のため, トークンチェックしない. 
    113106     */ 
    114     function doValidToken() 
    115     { 
     107    function doValidToken() { 
    116108        // nothing. 
    117109    } 
  • branches/version-2_12-dev/data/class/pages/upgrade/LC_Page_Upgrade_Download.php

    r22567 r22796  
    3434 * @version $Id$ 
    3535 */ 
    36 class LC_Page_Upgrade_Download extends LC_Page_Upgrade_Base  
    37 { 
     36class LC_Page_Upgrade_Download extends LC_Page_Upgrade_Base { 
    3837 
    3938    // }}} 
     
    4544     * @return void 
    4645     */ 
    47     function init() 
    48     { 
     46    function init() { 
    4947        parent::init(); 
    5048    } 
     
    5553     * @return void 
    5654     */ 
    57     function process($mode) 
    58     { 
     55    function process($mode) { 
    5956        $objLog  = new LC_Upgrade_Helper_Log; 
    6057        $objLog->start($mode); 
     
    248245     * @return void 
    249246     */ 
    250     function destroy() 
    251     { 
     247    function destroy() { 
    252248        parent::destroy(); 
    253249    } 
    254250 
    255     function initParam() 
    256     { 
     251    function initParam() { 
    257252        $this->objForm = new SC_FormParam_Ex(); 
    258253        $this->objForm->addParam( 
     
    267262     * @param object $objRet 
    268263     */ 
    269     function updateMdlTable($objRet) 
    270     { 
     264    function updateMdlTable($objRet) { 
    271265        $table = 'dtb_module'; 
    272266        $where = 'module_id = ?'; 
     
    301295     * @return 
    302296     */ 
    303     function notifyDownload($mode, $arrCookies) 
    304     { 
     297    function notifyDownload($mode, $arrCookies) { 
    305298        $arrPOSTParams = array( 
    306299            'eccube_url' => HTTP_URL 
     
    315308     * @return boolean 
    316309     */ 
    317     function isValidAccess($mode) 
    318     { 
     310    function isValidAccess($mode) { 
    319311        $objLog = new LC_Upgrade_Helper_Log; 
    320312        switch ($mode) { 
     
    366358    } 
    367359 
    368     function registerUpdateLog($arrLog, $objRet) 
    369     { 
     360    function registerUpdateLog($arrLog, $objRet) { 
    370361        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    371362        $arrInsert = array( 
     
    389380     * LC_Update_Updater::execute()で処理を実行する. 
    390381     */ 
    391     function fileExecute($productCode) 
    392     { 
     382    function fileExecute($productCode) { 
    393383        $file = DATA_REALDIR . 'downloads/update/' . $productCode . '_update.php'; 
    394384        if (file_exists($file)) { 
  • branches/version-2_12-dev/data/class/pages/upgrade/LC_Page_Upgrade_ProductsList.php

    r22567 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Upgrade_ProductsList extends LC_Page_Upgrade_Base  
    35 { 
     34class LC_Page_Upgrade_ProductsList extends LC_Page_Upgrade_Base { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846    } 
     
    5351     * @return void 
    5452     */ 
    55     function process($mode) 
    56     { 
     53    function process($mode) { 
    5754        $objLog  = new LC_Upgrade_Helper_Log; 
    5855        $objJson = new LC_Upgrade_Helper_Json; 
     
    160157     * @return void 
    161158     */ 
    162     function destroy() 
    163     { 
     159    function destroy() { 
    164160        parent::destroy(); 
    165161    } 
  • branches/version-2_12-dev/data/class/pages/upgrade/LC_Page_Upgrade_SiteCheck.php

    r22567 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Upgrade_SiteCheck extends LC_Page_Upgrade_Base  
    35 { 
     34class LC_Page_Upgrade_SiteCheck extends LC_Page_Upgrade_Base { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     {} 
     44    function init() {} 
    4745 
    4846    /** 
     
    5149     * @return void 
    5250     */ 
    53     function process($mode) 
    54     { 
     51    function process($mode) { 
    5552        $objLog  = new LC_Upgrade_Helper_LOG; 
    5653        $objJson = new LC_Upgrade_Helper_Json; 
     
    8178     * @return void 
    8279     */ 
    83     function destroy() 
    84     {} 
     80    function destroy() {} 
    8581} 
  • branches/version-2_12-dev/data/class/pages/upgrade/helper/LC_Upgrade_Helper_Json.php

    r22567 r22796  
    44 * 
    55 */ 
    6 class LC_Upgrade_Helper_Json extends Services_JSON  
    7 { 
     6class LC_Upgrade_Helper_Json extends Services_JSON { 
    87    /** */ 
    98    var $arrData = array( 
     
    1918     * @return SC_Upgrade_Helper_Json 
    2019     */ 
    21     function __construct() 
    22     { 
     20    function __construct() { 
    2321        parent::Services_JSON(); 
    2422    } 
     
    2826     * 
    2927     */ 
    30     function isError() 
    31     { 
     28    function isError() { 
    3229        return $this->isSuccess() ? false : true; 
    3330    } 
    3431 
    35     function isSuccess() 
    36     { 
     32    function isSuccess() { 
    3733        if ($this->arrData['status'] === OSTORE_STATUS_SUCCESS) { 
    3834            return true; 
     
    4743     * @param unknown_type $errMessage 
    4844     */ 
    49     function setError($errCode) 
    50     { 
     45    function setError($errCode) { 
    5146        $masterData = new SC_DB_MasterData_Ex(); 
    5247        $arrOStoreErrMsg = $masterData->getMasterData('mtb_ownersstore_err'); 
     
    6459     * @param mixed $data 
    6560     */ 
    66     function setSuccess($data = array(), $msg = '') 
    67     { 
     61    function setSuccess($data = array(), $msg = '') { 
    6862        $this->arrData['status'] = OSTORE_STATUS_SUCCESS; 
    6963        $this->arrData['data']   = $data; 
     
    7569     * 
    7670     */ 
    77     function display() 
    78     { 
     71    function display() { 
    7972        header('Content-Type: text/javascript; charset=UTF-8'); 
    8073        echo $this->encode($this->arrData); 
     
    9285     * @see SC_Utils_Ex::jsonDecode 
    9386     */ 
    94     function decode($str) 
    95     { 
     87    function decode($str) { 
    9688        return SC_Utils_Ex::jsonDecode($str); 
    9789    } 
  • branches/version-2_12-dev/data/class/pages/upgrade/helper/LC_Upgrade_Helper_Log.php

    r22567 r22796  
    2626 * 
    2727 */ 
    28 class LC_Upgrade_Helper_Log  
    29 { 
     28class LC_Upgrade_Helper_Log { 
    3029    /** 
    3130     * 開始メッセージを出力 
     
    3332     * @param string $mode 
    3433     */ 
    35     function start($mode) 
    36     { 
     34    function start($mode) { 
    3735        $message = "##### $mode start #####"; 
    3836        $this->log($message); 
     
    4341     * @param string $mode 
    4442     */ 
    45     function end() 
    46     { 
     43    function end() { 
    4744        $message = '##### end #####'; 
    4845        $this->log($message); 
     
    5350     * @param string $message 
    5451     */ 
    55     function log($message) 
    56     { 
     52    function log($message) { 
    5753        GC_Utils_Ex::gfPrintLog($message, OSTORE_LOG_REALFILE); 
    5854    } 
     
    6359     * @param mixed $val 
    6460     */ 
    65     function error($code, $val = null) 
    66     { 
     61    function error($code, $val = null) { 
    6762        $format = '* error! code:%s / debug:%s'; 
    6863        $message = sprintf($format, $code, serialize($val)); 
Note: See TracChangeset for help on using the changeset viewer.