Ignore:
Timestamp:
2013/02/18 19:09:54 (13 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/SC_Response.php

    r22206 r22567  
    2828 * @version $Id$ 
    2929 */ 
    30 class SC_Response{ 
     30class SC_Response 
     31{ 
    3132 
    3233    /** 
     
    4950     * レスポンス出力を書き込む. 
    5051     */ 
    51     function write() { 
     52    function write() 
     53    { 
    5254        $this->sendHeader(); 
    5355        echo $this->body; 
    5456    } 
    5557 
    56     function sendHeader() { 
     58    function sendHeader() 
     59    { 
    5760        // HTTPのヘッダ 
    5861        foreach ($this->header as $name => $head) { 
     
    6467    } 
    6568 
    66     function setContentType($contentType) { 
     69    function setContentType($contentType) 
     70    { 
    6771        $this->header['Content-Type'] = $contentType; 
    6872    } 
    6973 
    70     function setResposeBody($body) { 
     74    function setResposeBody($body) 
     75    { 
    7176        $this->body = $body; 
    7277    } 
    7378 
    74     function addHeader($name, $value) { 
     79    function addHeader($name, $value) 
     80    { 
    7581        $this->header[$name] = $value; 
    7682    } 
    7783 
    78     function containsHeader($name) { 
     84    function containsHeader($name) 
     85    { 
    7986        return isset($this->header[$name]); 
    8087    } 
     
    8491     * 各クラス内部で勝手にexitするな! 
    8592    */ 
    86     function actionExit() { 
     93    function actionExit() 
     94    { 
    8795        // ローカルフックポイント処理 
    8896        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     
    115123     * @static 
    116124     */ 
    117     function sendRedirect($location, $arrQueryString = array(), $inheritQueryString = false, $useSsl = null) { 
     125    function sendRedirect($location, $arrQueryString = array(), $inheritQueryString = false, $useSsl = null) 
     126    { 
    118127 
    119128        // ローカルフックポイント処理 
     
    216225     * @static 
    217226     */ 
    218     function sendRedirectFromUrlPath($location, $arrQueryString = array(), $inheritQueryString = false, $useSsl = null) { 
     227    function sendRedirectFromUrlPath($location, $arrQueryString = array(), $inheritQueryString = false, $useSsl = null) 
     228    { 
    219229        $location = ROOT_URLPATH . ltrim($location, '/'); 
    220230        SC_Response_Ex::sendRedirect($location, $arrQueryString, $inheritQueryString, $useSsl); 
     
    224234     * @static 
    225235     */ 
    226     function reload($arrQueryString = array(), $removeQueryString = false) { 
     236    function reload($arrQueryString = array(), $removeQueryString = false) 
     237    { 
    227238        // 現在の URL を取得 
    228239        $netUrl = new Net_URL($_SERVER['REQUEST_URI']); 
     
    236247    } 
    237248 
    238     function setHeader($headers) { 
     249    function setHeader($headers) 
     250    { 
    239251        $this->header = $headers; 
    240252    } 
    241253 
    242     function setStatusCode($statusCode = null) { 
     254    function setStatusCode($statusCode = null) 
     255    { 
    243256        $this->statusCode = $statusCode; 
    244257    } 
     
    259272     * @static 
    260273     */ 
    261     function sendHttpStatus($statusCode) { 
     274    function sendHttpStatus($statusCode) 
     275    { 
    262276        $protocol = $_SERVER['SERVER_PROTOCOL']; 
    263277        $httpVersion = (strpos($protocol, '1.1') !== false) ? '1.1' : '1.0'; 
Note: See TracChangeset for help on using the changeset viewer.