|
|
|
Context class (current)
|
SMaker |
2010.03.17 18:42:59 |
|
|
|
복원
<p>Context는 GET/POST 값을 받아오고, 템플릿에 변수 및 여러 정보를 넘겨주는 역활을 합니다.</p><p>또 Request가 XMLRPC인지, JSON인지, GET/POST인지 구분하여 줍니다.</p><ul class="toc"><li class="toc4"><a href="#h1249626774306">Context::set(string KEY, mixed VALUE)</a></li><li class="toc4"><a href="#h1249626723795">mixed Context::get(string KEY)</a></li><li class="toc4"><a href="#h1249626748372">stdClass Context::gets(string KEY1 [ , string KEY2 ...])</a></li><li class="toc4"><a href="#h1249626667901">stdClass Context::getRequestVars()</a></li><li class="toc4"><a href="#h1249626847005">Context::addJsFile(string FILE_PATH, bool OPTIMIZED ,string TARGETIE, int INDEX)</a></li><li class="toc4"><a href="#h1249626852735">Context::addCSSFile(string FILE_PATH, bool OPTIMIZED ,string TARGETIE, int INDEX)</a></li><li class="toc4"><a href="#h1249626838603">Context::addJsFliter(string FILTER_NAME)</a></li><li class="toc4"><a href="#h1249626863771">Context::setBrowserTitle(string TITLE)</a></li><li class="toc4"><a href="#h1249626872316">Context::loadJavascriptPlugin(string PLUGIN_NAME)</a></li><li class="toc4"><a href="#h1249626882419">Context::addHtmlHeader(string HEAD)</a></li></ul><h4 id="h1249626774306">Context::set(string KEY, mixed VALUE)</h4><p>템플릿에 보낼 변수를 설정하기 위한 함수입니다.</p><p>Context::set('user_id','sol');<br>설정뒤 템플릿에서 {$user_id} 형식으로 쓸 수 있습니다</p><h4 id="h1249626723795">mixed Context::get(string KEY)</h4><p>Request로 넘어온 변수 또는 set한 값을 가져옵니다.</p><p>$user_id = Context::get('user_id');</p><h4 id="h1249626748372">stdClass Context::gets(string KEY1 [ , string KEY2 ...])</h4><p>한번에 여러 값을 가져오고 stdClass로 반환됩니다.</p><h4 id="h1249626667901">stdClass Context::getRequestVars()</h4><p>Request로 넘어온 변수만을 stdClass로 반환합니다.</p><h4 id="h1249626847005">Context::addJsFile(string FILE_PATH, bool OPTIMIZED ,string TARGETIE, int INDEX)</h4><p>템플릿에 javascript 파일을 추가 합니다.<br>확장자가 js로 꼭 끝나는 파일만 추가 합니다.</p><h4 id="h1249626852735">Context::addCSSFile(string FILE_PATH, bool OPTIMIZED ,string TARGETIE, int INDEX)</h4><p><span class="Apple-style-span" style="line-height: 19px; font-family: Tahoma;">템플릿에 CSS 파일을 추가 합니다.</span></p><h4 id="h1249626838603">Context::addJsFliter(string FILTER_NAME)</h4><p>XML로 작성된 필터를 템플릿에 로드합니다.</p><h4 id="h1249626863771">Context::setBrowserTitle(string TITLE)</h4><p>HTML의 title 값을 지정합니다.</p><h4 id="h1249626872316">Context::loadJavascriptPlugin(string PLUGIN_NAME)</h4><p>js plugin 을 템플릿에 로드 합니다.</p><h4 id="h1249626882419">Context::addHtmlHeader(string HEAD)</h4><p>HTML의 <head></head> 안에 스트링을 추가합니다</p>
|
SMaker |
2010.03.17 18:42:49 |
|
|
|
복원
<div class="eArea xe_content xe_dr_txt"><p>Context는 GET/POST 값을 받아오고, 템플릿에 변수 및 여러 정보를 넘겨주는 역활을 합니다.</p><p>또 Request가 XMLRPC인지, JSON인지, GET/POST인지 구분하여 줍니다.</p></div><div class="eArea xe_content xe_dr_index"><ul class="toc"><li class="toc4"><a href="#h1249626774306">Context::set(string KEY, mixed VALUE)</a></li><li class="toc4"><a href="#h1249626723795">mixed Context::get(string KEY)</a></li><li class="toc4"><a href="#h1249626748372">stdClass Context::gets(string KEY1 [ , string KEY2 ...])</a></li><li class="toc4"><a href="#h1249626667901">stdClass Context::getRequestVars()</a></li><li class="toc4"><a href="#h1249626847005">Context::addJsFile(string FILE_PATH, bool OPTIMIZED ,string TARGETIE, int INDEX)</a></li><li class="toc4"><a href="#h1249626852735">Context::addCSSFile(string FILE_PATH, bool OPTIMIZED ,string TARGETIE, int INDEX)</a></li><li class="toc4"><a href="#h1249626838603">Context::addJsFliter(string FILTER_NAME)</a></li><li class="toc4"><a href="#h1249626863771">Context::setBrowserTitle(string TITLE)</a></li><li class="toc4"><a href="#h1249626872316">Context::loadJavascriptPlugin(string PLUGIN_NAME)</a></li><li class="toc4"><a href="#h1249626882419">Context::addHtmlHeader(string HEAD)</a></li></ul></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626774306">Context::set(string KEY, mixed VALUE)</h4></div><div class="eArea xe_content xe_dr_txt"><p>템플릿에 보낼 변수를 설정하기 위한 함수입니다.</p><p>Context::set('user_id','sol');<br>설정뒤 템플릿에서 {$user_id} 형식으로 쓸 수 있습니다</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626723795">mixed Context::get(string KEY)</h4></div><div class="eArea xe_content xe_dr_txt"><p>Request로 넘어온 변수 또는 set한 값을 가져옵니다.</p><p>$user_id = Context::get('user_id');</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626748372">stdClass Context::gets(string KEY1 [ , string KEY2 ...])</h4></div><div class="eArea xe_content xe_dr_txt"><p>한번에 여러 값을 가져오고 stdClass로 반환됩니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626667901">stdClass Context::getRequestVars()</h4></div><div class="eArea xe_content xe_dr_txt"><p>Request로 넘어온 변수만을 stdClass로 반환합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626847005">Context::addJsFile(string FILE_PATH, bool OPTIMIZED ,string TARGETIE, int INDEX)</h4></div><div class="eArea xe_content xe_dr_txt"><p>템플릿에 javascript 파일을 추가 합니다.<br>확장자가 js로 꼭 끝나는 파일만 추가 합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626852735">Context::addCSSFile(string FILE_PATH, bool OPTIMIZED ,string TARGETIE, int INDEX)</h4></div><div class="eArea xe_content xe_dr_txt"><p><span class="Apple-style-span" style="line-height: 19px; font-family: Tahoma; ">템플릿에 CSS 파일을 추가 합니다.</span></p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626838603">Context::addJsFliter(string FILTER_NAME)</h4></div><div class="eArea xe_content xe_dr_txt"><p>XML로 작성된 필터를 템플릿에 로드합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626863771">Context::setBrowserTitle(string TITLE)</h4></div><div class="eArea xe_content xe_dr_txt"><p>HTML의 title 값을 지정합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626872316">Context::loadJavascriptPlugin(string PLUGIN_NAME)</h4></div><div class="eArea xe_content xe_dr_txt"><p>js plugin 을 템플릿에 로드 합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249626882419">Context::addHtmlHeader(string HEAD)</h4></div><div class="eArea xe_content xe_dr_txt"><p>HTML의 <head></head> 안에 스트링을 추가합니다</p></div>
|
sol |
2009.08.07 15:35:11 |
|
|
|
복원
<div class="eArea xe_content xe_dr_txt"><p>Context는 GET/POST 값을 받아오고, 템플릿에 변수 및 여러 정보를 넘겨주는 역활을 합니다.</p><p>또 Request가 XMLRPC인지, JSON인지, GET/POST인지 구분하여 줍니다.</p></div><div class="eArea xe_content xe_dr_index"><ul class="toc"><li class="toc4"><a href="#h1249624842014">Context::set(KEY,VALUE)</a></li><li class="toc4"><a href="#h1249624860293">Context::get(KEY)</a></li><li class="toc4"><a href="#h1249624984750">Context::gets(KEY1,KEY2,KEY3,...)</a></li><li class="toc4"><a href="#h1249623858074">Context::getRequestVars()</a></li><li class="toc4"><a href="#h1249625163525">Context::addJsFile(file_path, optimized , targetie, index)</a></li><li class="toc4"><a href="#h1249623902495">Context::addCSSFile()</a></li><li class="toc4"><a href="#h1249625555627">Context::addJsFliter(FILTER_NAME)</a></li><li class="toc4"><a href="#h1249625483079">Context::setBrowserTitle(STRING)</a></li><li class="toc4"><a href="#h1249625495729">Context::loadJavascriptPlugin(PLUGIN_NAME)</a></li><li class="toc4"><a href="#h1249623997147">Context::addHtmlHeader()</a></li></ul></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249624842014">Context::set(KEY,VALUE)</h4></div><div class="eArea xe_content xe_dr_txt"><p>템플릿에 보낼 변수를 설정하기 위한 함수입니다.</p><p>Context::set('user_id','sol');<br>설정뒤 템플릿에서 {$user_id} 형식으로 쓸 수 있습니다</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249624860293">Context::get(KEY)</h4></div><div class="eArea xe_content xe_dr_txt"><p>Request로 넘어온 변수 또는 set한 값을 가져옵니다.</p><p>$user_id = Context::get('user_id');</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249624984750">Context::gets(KEY1,KEY2,KEY3,...)</h4></div><div class="eArea xe_content xe_dr_txt"><p>한번에 여러 값을 가져오고 stdClass로 반환됩니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623858074">Context::getRequestVars()</h4></div><div class="eArea xe_content xe_dr_txt"><p>Request로 넘어온 변수만을 stdClass로 반환합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249625163525">Context::addJsFile(file_path, optimized , targetie, index)</h4></div><div class="eArea xe_content xe_dr_txt"><p>템플릿에 javascript 파일을 추가 합니다.<br>확장자가 js로 꼭 끝나는 파일만 추가 합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623902495">Context::addCSSFile()</h4></div><div class="eArea xe_content xe_dr_txt"><p><span class="Apple-style-span" style="line-height: 19px; font-family: Tahoma; ">템플릿에 CSS 파일을 추가 합니다.</span></p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249625555627">Context::addJsFliter(FILTER_NAME)</h4></div><div class="eArea xe_content xe_dr_txt"><p>XML로 작성된 필터를 템플릿에 로드합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249625483079">Context::setBrowserTitle(STRING)</h4></div><div class="eArea xe_content xe_dr_txt"><p>HTML의 title 값을 지정합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249625495729">Context::loadJavascriptPlugin(PLUGIN_NAME)</h4></div><div class="eArea xe_content xe_dr_txt"><p>js plugin 을 템플릿에 로드 합니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623997147">Context::addHtmlHeader()</h4></div><div class="eArea xe_content xe_dr_txt"><p>HTML의 <head></head> 안에 스트링을 추가합니다</p></div>
|
sol |
2009.08.07 15:20:14 |
|
|
|
복원
<div class="eArea xe_content xe_dr_txt"><p>Context는 GET/POST 값을 받아오고, 템플릿에 변수 및 여러 정보를 넘겨주는 역활을 합니다.</p><p>또 Request가 XMLRPC인지, JSON인지, GET/POST인지 구분하여 줍니다.</p></div><div class="eArea xe_content xe_dr_index"><ul class="toc"><li class="toc4"><a href="#h1249623751073">Context:set()</a></li><li class="toc4"><a href="#h1249623741037">Context::get()</a></li><li class="toc4"><a href="#h1249623829305">Context::gets()</a></li><li class="toc4"><a href="#h1249623891170">Context::addJsFile()</a></li><li class="toc4"><a href="#h1249623902495">Context::addCSSFile()</a></li><li class="toc4"><a href="#h1249623933851">Context::addJsFliter()</a></li><li class="toc4"><a href="#h1249623858074">Context::getRequestVars()</a></li><li class="toc4"><a href="#h1249623866778">Context::setBrowserTitle()</a></li><li class="toc4"><a href="#h1249623979877">Context::loadJavascriptPlugin()</a></li><li class="toc4"><a href="#h1249623997147">Context::addHtmlHeader()</a></li></ul></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623751073">Context:set()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623741037">Context::get()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623829305">Context::gets()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623891170">Context::addJsFile()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623902495">Context::addCSSFile()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623933851">Context::addJsFliter()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623858074">Context::getRequestVars()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623866778">Context::setBrowserTitle()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623979877">Context::loadJavascriptPlugin()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623997147">Context::addHtmlHeader()</h4></div>
|
sol |
2009.08.07 14:49:19 |
|
|
|
복원
<div class="eArea xe_content xe_dr_txt"><p>Context는 GET/POST 값을 받아오고, 템플릿에 변수 및 여러 정보를 넘겨주는 역활을 합니다.</p><p>또 Request가 XMLRPC인지, JSON인지, GET/POST인지 구분하여 줍니다.</p></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623751073">Context:set()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623741037">Context::get()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623829305">Context::gets()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623891170">Context::addJsFile()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623902495">Context::addCSSFile()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623933851">Context::addJsFliter()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623858074">Context::getRequestVars()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623866778">Context::setBrowserTitle()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623979877">Context::loadJavascriptPlugin()</h4></div><div class="eArea xe_content xe_dr_hx"><h4 id="h1249623997147">Context::addHtmlHeader()</h4></div>
|
sol |
2009.08.07 14:48:54 |