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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Response.php

    r22567 r22796  
    2828 * @version $Id$ 
    2929 */ 
    30 class SC_Response 
    31 { 
     30class SC_Response{ 
    3231 
    3332    /** 
     
    5049     * レスポンス出力を書き込む. 
    5150     */ 
    52     function write() 
    53     { 
     51    function write() { 
    5452        $this->sendHeader(); 
    5553        echo $this->body; 
    5654    } 
    5755 
    58     function sendHeader() 
    59     { 
     56    function sendHeader() { 
    6057        // HTTPのヘッダ 
    6158        foreach ($this->header as $name => $head) { 
     
    6764    } 
    6865 
    69     function setContentType($contentType) 
    70     { 
     66    function setContentType($contentType) { 
    7167        $this->header['Content-Type'] = $contentType; 
    7268    } 
    7369 
    74     function setResposeBody($body) 
    75     { 
     70    function setResposeBody($body) { 
    7671        $this->body = $body; 
    7772    } 
    7873 
    79     function addHeader($name, $value) 
    80     { 
     74    function addHeader($name, $value) { 
    8175        $this->header[$name] = $value; 
    8276    } 
    8377 
    84     function containsHeader($name) 
    85     { 
     78    function containsHeader($name) { 
    8679        return isset($this->header[$name]); 
    8780    } 
     
    9184     * 各クラス内部で勝手にexitするな! 
    9285    */ 
    93     function actionExit() 
    94     { 
     86    function actionExit() { 
    9587        // ローカルフックポイント処理 
    9688        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     
    123115     * @static 
    124116     */ 
    125     function sendRedirect($location, $arrQueryString = array(), $inheritQueryString = false, $useSsl = null) 
    126     { 
     117    function sendRedirect($location, $arrQueryString = array(), $inheritQueryString = false, $useSsl = null) { 
    127118 
    128119        // ローカルフックポイント処理 
     
    225216     * @static 
    226217     */ 
    227     function sendRedirectFromUrlPath($location, $arrQueryString = array(), $inheritQueryString = false, $useSsl = null) 
    228     { 
     218    function sendRedirectFromUrlPath($location, $arrQueryString = array(), $inheritQueryString = false, $useSsl = null) { 
    229219        $location = ROOT_URLPATH . ltrim($location, '/'); 
    230220        SC_Response_Ex::sendRedirect($location, $arrQueryString, $inheritQueryString, $useSsl); 
     
    234224     * @static 
    235225     */ 
    236     function reload($arrQueryString = array(), $removeQueryString = false) 
    237     { 
     226    function reload($arrQueryString = array(), $removeQueryString = false) { 
    238227        // 現在の URL を取得 
    239228        $netUrl = new Net_URL($_SERVER['REQUEST_URI']); 
     
    247236    } 
    248237 
    249     function setHeader($headers) 
    250     { 
     238    function setHeader($headers) { 
    251239        $this->header = $headers; 
    252240    } 
    253241 
    254     function setStatusCode($statusCode = null) 
    255     { 
     242    function setStatusCode($statusCode = null) { 
    256243        $this->statusCode = $statusCode; 
    257244    } 
     
    272259     * @static 
    273260     */ 
    274     function sendHttpStatus($statusCode) 
    275     { 
     261    function sendHttpStatus($statusCode) { 
    276262        $protocol = $_SERVER['SERVER_PROTOCOL']; 
    277263        $httpVersion = (strpos($protocol, '1.1') !== false) ? '1.1' : '1.0'; 
Note: See TracChangeset for help on using the changeset viewer.