mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Context::getInstance 설명 바로잡음
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4274 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d1c6d03c4e
commit
cf8d8c720a
1 changed files with 4 additions and 4 deletions
|
|
@ -50,12 +50,12 @@
|
||||||
/**
|
/**
|
||||||
* @brief 유일한 Context 객체를 반환 (Singleton)
|
* @brief 유일한 Context 객체를 반환 (Singleton)
|
||||||
*
|
*
|
||||||
* Context는 어디서든 객체 선언없이 사용하기 위해서 GLOBALS 변수에 저장후 재사용
|
* Context는 어디서든 객체 선언없이 사용하기 위해서 static 하게 사용
|
||||||
**/
|
**/
|
||||||
function &getInstance() {
|
function &getInstance() {
|
||||||
static $theInstance;
|
static $theInstance;
|
||||||
if(!isset($theInstance)) $theInstance = new Context();
|
if(!isset($theInstance)) $theInstance = new Context();
|
||||||
return $theInstance;
|
return $theInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue