Context::getInstance 설명 바로잡음

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4274 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
wdlee91 2008-06-11 11:50:01 +00:00
parent d1c6d03c4e
commit cf8d8c720a

View file

@ -50,12 +50,12 @@
/**
* @brief 유일한 Context 객체를 반환 (Singleton)
*
* Context는 어디서든 객체 선언없이 사용하기 위해서 GLOBALS 변수에 저장후 재사용
* Context는 어디서든 객체 선언없이 사용하기 위해서 static 하게 사용
**/
function &getInstance() {
static $theInstance;
if(!isset($theInstance)) $theInstance = new Context();
return $theInstance;
static $theInstance;
if(!isset($theInstance)) $theInstance = new Context();
return $theInstance;
}
/**