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

    r22206 r22567  
    2626 * 
    2727 */ 
    28 class SC_Cookie { 
     28class SC_Cookie  
     29{ 
    2930 
    3031    var $expire; 
    3132 
    3233    // コンストラクタ 
    33     function __construct($day = COOKIE_EXPIRE) { 
     34    function __construct($day = COOKIE_EXPIRE) 
     35    { 
    3436        // 有効期限 
    3537        $this->expire = time() + ($day * 24 * 3600); 
     
    3739 
    3840    // クッキー書き込み 
    39     function setCookie($key, $val) { 
     41    function setCookie($key, $val) 
     42    { 
    4043        setcookie($key, $val, $this->expire, ROOT_URLPATH, DOMAIN_NAME); 
    4144    } 
     
    4649     * EC-CUBE をURLパスルート以外にインストールしている場合、上位ディレクトリの値も(劣後ではあるが)取得する点に留意。 
    4750     */ 
    48     function getCookie($key) { 
     51    function getCookie($key) 
     52    { 
    4953        return isset($_COOKIE[$key]) ? $_COOKIE[$key] : null; 
    5054    } 
Note: See TracChangeset for help on using the changeset viewer.