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_Display.php

    r22567 r22796  
    2828 * @version $Id$ 
    2929 */ 
    30 class SC_Display 
    31 { 
     30class SC_Display{ 
    3231 
    3332    var $response; 
     
    5049     */ 
    5150 
    52     function __construct($hasPrevURL = true) 
    53     { 
     51    function __construct($hasPrevURL = true) { 
    5452        $this->response = new SC_Response_Ex(); 
    5553        if ($hasPrevURL) { 
     
    5856    } 
    5957 
    60     function setPrevURL() 
    61     { 
     58    function setPrevURL() { 
    6259        // TODO SC_SiteSession で実装した方が良さげ 
    6360        $objCartSess = new SC_CartSession_Ex(); 
     
    7168     * @param $is_admin boolean 管理画面を扱う場合 true 
    7269     */ 
    73     function prepare($page, $is_admin = false) 
    74     { 
     70    function prepare($page, $is_admin = false) { 
    7571        if (!$this->deviceSeted || !is_null($this->view)) { 
    7672            $device = ($is_admin) ? DEVICE_TYPE_ADMIN : $this->detectDevice(); 
     
    8783     * SC_Response::reload() のラッパーです. 
    8884     */ 
    89     function reload($queryString = array(), $removeQueryString = false) 
    90     { 
     85    function reload($queryString = array(), $removeQueryString = false) { 
    9186        $this->response->reload($queryString, $removeQueryString); 
    9287    } 
    9388 
    94     function noAction() 
    95     { 
     89    function noAction() { 
    9690        return; 
    9791    } 
     
    10094     * ヘッダを追加する. 
    10195     */ 
    102     function addHeader($name, $value) 
    103     { 
     96    function addHeader($name, $value) { 
    10497        $this->response->addHeader($name, $value); 
    10598    } 
     
    109102     * Enter description here ... 
    110103     */ 
    111     function setDevice($device = DEVICE_TYPE_PC) 
    112     { 
     104    function setDevice($device = DEVICE_TYPE_PC) { 
    113105 
    114106        switch ($device) { 
     
    135127     * SC_View インスタンスを設定する. 
    136128     */ 
    137     function setView($view) 
    138     { 
     129    function setView($view) { 
    139130        $this->view = $view; 
    140131    } 
     
    151142     * @return integer 端末種別ID 
    152143     */ 
    153     public static function detectDevice($reset = FALSE) 
    154     { 
     144    public static function detectDevice($reset = FALSE) { 
    155145        if (is_null(SC_Display_Ex::$device) || $reset) { 
    156146            $nu = new Net_UserAgent_Mobile(); 
     
    167157    } 
    168158 
    169     function assign($val1,$val2) 
    170     { 
     159    function assign($val1,$val2) { 
    171160        $this->view->assign($val1, $val2); 
    172161    } 
    173162 
    174     function assignobj($obj) 
    175     { 
     163    function assignobj($obj) { 
    176164        $this->view->assignobj($obj); 
    177165    } 
    178166 
    179     function assignarray($array) 
    180     { 
     167    function assignarray($array) { 
    181168        $this->view->assignarray($array); 
    182169    } 
Note: See TracChangeset for help on using the changeset viewer.