Changeset 4274 for sandbox

Show
Ignore:
Timestamp:
06/11/2008 08:50:01 PM (3 months ago)
Author:
wdlee91
Message:

Context::getInstance 설명 바로잡음

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/classes/context/Context.class.php

    r4262 r4274  
    5151         * @brief 유일한 Context 객체를 반환 (Singleton) 
    5252         * 
    53          * Context는 어디서든 객체 선언없이 사용하기 위해서 GLOBALS 변수에 저장후 재사용  
     53         * Context는 어디서든 객체 선언없이 사용하기 위해서 static 하게 사용 
    5454         **/ 
    5555        function &getInstance() { 
    56             static $theInstance;  
    57             if(!isset($theInstance)) $theInstance = new Context();  
    58             return $theInstance;  
     56            static $theInstance; 
     57            if(!isset($theInstance)) $theInstance = new Context(); 
     58            return $theInstance; 
    5959        } 
    6060