- Timestamp:
- 06/11/2008 08:50:01 PM (3 months ago)
- Files:
-
- 1 modified
-
sandbox/classes/context/Context.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sandbox/classes/context/Context.class.php
r4262 r4274 51 51 * @brief 유일한 Context 객체를 반환 (Singleton) 52 52 * 53 * Context는 어디서든 객체 선언없이 사용하기 위해서 GLOBALS 변수에 저장후 재사용53 * Context는 어디서든 객체 선언없이 사용하기 위해서 static 하게 사용 54 54 **/ 55 55 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; 59 59 } 60 60