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

    r22206 r22567  
    2828 * @version $Id$ 
    2929 */ 
    30 class SC_Display{ 
     30class SC_Display 
     31{ 
    3132 
    3233    var $response; 
     
    4950     */ 
    5051 
    51     function __construct($hasPrevURL = true) { 
     52    function __construct($hasPrevURL = true) 
     53    { 
    5254        $this->response = new SC_Response_Ex(); 
    5355        if ($hasPrevURL) { 
     
    5658    } 
    5759 
    58     function setPrevURL() { 
     60    function setPrevURL() 
     61    { 
    5962        // TODO SC_SiteSession で実装した方が良さげ 
    6063        $objCartSess = new SC_CartSession_Ex(); 
     
    6871     * @param $is_admin boolean 管理画面を扱う場合 true 
    6972     */ 
    70     function prepare($page, $is_admin = false) { 
     73    function prepare($page, $is_admin = false) 
     74    { 
    7175        if (!$this->deviceSeted || !is_null($this->view)) { 
    7276            $device = ($is_admin) ? DEVICE_TYPE_ADMIN : $this->detectDevice(); 
     
    8387     * SC_Response::reload() のラッパーです. 
    8488     */ 
    85     function reload($queryString = array(), $removeQueryString = false) { 
     89    function reload($queryString = array(), $removeQueryString = false) 
     90    { 
    8691        $this->response->reload($queryString, $removeQueryString); 
    8792    } 
    8893 
    89     function noAction() { 
     94    function noAction() 
     95    { 
    9096        return; 
    9197    } 
     
    94100     * ヘッダを追加する. 
    95101     */ 
    96     function addHeader($name, $value) { 
     102    function addHeader($name, $value) 
     103    { 
    97104        $this->response->addHeader($name, $value); 
    98105    } 
     
    102109     * Enter description here ... 
    103110     */ 
    104     function setDevice($device = DEVICE_TYPE_PC) { 
     111    function setDevice($device = DEVICE_TYPE_PC) 
     112    { 
    105113 
    106114        switch ($device) { 
     
    127135     * SC_View インスタンスを設定する. 
    128136     */ 
    129     function setView($view) { 
     137    function setView($view) 
     138    { 
    130139        $this->view = $view; 
    131140    } 
     
    142151     * @return integer 端末種別ID 
    143152     */ 
    144     public static function detectDevice($reset = FALSE) { 
     153    public static function detectDevice($reset = FALSE) 
     154    { 
    145155        if (is_null(SC_Display_Ex::$device) || $reset) { 
    146156            $nu = new Net_UserAgent_Mobile(); 
     
    157167    } 
    158168 
    159     function assign($val1,$val2) { 
     169    function assign($val1,$val2) 
     170    { 
    160171        $this->view->assign($val1, $val2); 
    161172    } 
    162173 
    163     function assignobj($obj) { 
     174    function assignobj($obj) 
     175    { 
    164176        $this->view->assignobj($obj); 
    165177    } 
    166178 
    167     function assignarray($array) { 
     179    function assignarray($array) 
     180    { 
    168181        $this->view->assignarray($array); 
    169182    } 
Note: See TracChangeset for help on using the changeset viewer.