Request Argument/환경변수등의 모든 Context를 관리 Context 클래스는 Context::methodname() 처럼 쉽게 사용하기 위해 만들어진 객체를 받아서 호출하는 구조를 위해 이중 method 구조를 가지고 있다. 더 자세히 ...
Public 멤버 함수 | |
| & | getInstance () |
| 유일한 Context 객체를 반환 (Singleton) Context는 어디서든 객체 선언없이 사용하기 위해서 static 하게 사용 | |
| init () | |
| DB정보, Request Argument등을 세팅 Context::init()은 단 한번만 호출되어야 하며 init()시에 Request Argument, DB/언어/세션정보등의 모든 정보를 세팅한다. | |
| close () | |
| DB및 기타 자원들의 close. | |
| loadDBInfo () | |
| DB의 및 기타 정보 load. | |
| _loadDBInfo () | |
| DB 정보를 설정하고 DB Type과 DB 정보를 return. | |
| getDBType () | |
| DB의 db_type을 return. | |
| _getDBType () | |
| DB의 db_type을 return. | |
| setDBInfo ($db_info) | |
| DB 정보가 담긴 object를 return. | |
| _setDBInfo ($db_info) | |
| DB 정보가 담긴 object를 return. | |
| getDBInfo () | |
| DB 정보가 담긴 object를 return. | |
| _getDBInfo () | |
| DB 정보가 담긴 object를 return. | |
| getDefaultUrl () | |
| 기본 URL을 return | |
| loadLangSupported () | |
| 지원되는 언어 파일 찾기 | |
| loadLangSelected () | |
| 설정한 언어 파일 찾기 | |
| checkSSO () | |
| SSO URL이 설정되어 있고 아직 SSO URL검사를 하지 않았다면 return true. | |
| isFTPRegisted () | |
| getFTPInfo () | |
| FTP 정보가 담긴 object를 return. | |
| _getFTPInfo () | |
| FTP 정보가 담긴 object를 return. | |
| addBrowserTitle ($site_title) | |
| 사이트 title adding | |
| _addBrowserTitle ($site_title) | |
| 사이트 title adding | |
| setBrowserTitle ($site_title) | |
| 사이트 title setting | |
| _setBrowserTitle ($site_title) | |
| 사이트 title setting | |
| getBrowserTitle () | |
| 사이트 title return | |
| _getBrowserTitle () | |
| 사이트 title return | |
| loadLang ($path) | |
| 지정된 언어파일 로드 | |
| _loadLang ($path) | |
| 지정된 언어파일 로드 | |
| setLangType ($lang_type= 'ko') | |
| lang_type을 세팅 (기본 ko) | |
| _setLangType ($lang_type= 'ko') | |
| lang_type을 세팅 (기본 ko) | |
| getLangType () | |
| lang_type을 return | |
| _getLangType () | |
| lang_type을 return | |
| getLang ($code) | |
| code에 해당하는 문자열을 return | |
| setLang ($code, $val) | |
| 직접 lang 변수에 데이터를 추가 | |
| convertEncoding ($source_obj) | |
| object내의 variables의 문자열을 utf8로 변경 | |
| convertEncodingStr ($str) | |
| 특정 문자열만 utf-8로 변경 | |
| setResponseMethod ($method="HTML") | |
| response method를 강제로 지정 (기본으로는 request method를 이용함) | |
| _setResponseMethod ($method="HTML") | |
| getResponseMethod () | |
| response method 값을 return | |
| _getResponseMethod () | |
| setRequestMethod ($type) | |
| request method가 어떤것인지 판단하여 저장 (GET/POST/XMLRPC/JSON) | |
| _setRequestMethod ($type= '') | |
| request method가 어떤것인지 판단하여 저장 (GET/POST/XMLRPC/JSON) | |
| _setRequestArgument () | |
| GET/POST방식일 경우 처리. | |
| _setJSONRequestArgument () | |
| JSON 방식일 경우 처리. | |
| _setXmlRpcArgument () | |
| XML RPC일때. | |
| _filterRequestVar ($key, $val, $do_stripslashes=1) | |
| 변수명에 따라서 필터링 처리 _srl, page, cpage등의 변수는 integer로 형변환 | |
| isUploaded () | |
| 업로드 되었을 경우 return true | |
| _isUploaded () | |
| 업로드 되었을 경우 return true | |
| _setUploadedArgument () | |
| 업로드된 파일이 있을 경우도 역시 context에 통합 처리 (단 정상적인 업로드인지 체크) | |
| getRequestMethod () | |
| Request Method값을 return (GET/POST/XMLRPC/JSON);. | |
| _getRequestMethod () | |
| Request Method값을 return (GET/POST/XMLRPC/JSON);. | |
| getRequestUrl () | |
| 현재 요청된 full url을 return | |
| getUrl ($num_args=0, $args_list=array(), $domain=null, $encode=true) | |
| 요청받은 url에 args_list를 적용하여 return | |
| _getUrl ($num_args=0, $args_list=array(), $domain=null, $encode=true) | |
| 요청받은 url에 args_list를 적용하여 return | |
| getRequestUri ($ssl_mode=FOLLOW_REQUEST_SSL, $domain=null) | |
| 요청이 들어온 URL에서 argument를 제거하여 return | |
| set ($key, $val, $set_to_get_vars=false) | |
| key/val로 context vars 세팅 | |
| _set ($key, $val, $set_to_get_vars=false) | |
| key/val로 context vars 세팅 | |
| get ($key) | |
| key값에 해당하는 값을 return | |
| _get ($key) | |
| key값에 해당하는 값을 return | |
| gets () | |
| 받고자 하는 변수만 object에 입력하여 받음 | |
| _gets ($num_args, $args_list) | |
| 받고자 하는 변수만 object에 입력하여 받음 | |
| getAll () | |
| 모든 데이터를 return | |
| _getAll () | |
| 모든 데이터를 return | |
| getRequestVars () | |
| GET/POST/XMLRPC에서 넘어온 변수값을 return. | |
| _getRequestVars () | |
| GET/POST/XMLRPC에서 넘어온 변수값을 return. | |
| addSSLAction ($action) | |
| SSL로 인증되어야 할 action이 있을 경우 등록 common/js/xml_handler.js에서 이 action들에 대해서 https로 전송되도록 함. | |
| _addSSLAction ($action) | |
| getSSLActions () | |
| _getSSLActions () | |
| isExistsSSLAction ($action) | |
| _isExistsSSLAction ($action) | |
| addJsFile ($file, $optimized=true, $targetie= '', $index=null) | |
| js file을 추가 | |
| _addJsFile ($file, $optimized, $targetie, $index) | |
| js file을 추가 | |
| unloadJsFile ($file, $optimized=true, $targetie= '') | |
| js file을 제거 | |
| _unloadJsFile ($file, $optimized, $targetie) | |
| js file을 제거 | |
| unloadAllJsFiles () | |
| 모든 JS File을 제거 | |
| _unloadAllJsFiles () | |
| addJsFilter ($path, $filename) | |
| javascript filter 추가 | |
| _getUniqueFileList ($files) | |
| array_unique와 동작은 동일하나 file 첨자에 대해서만 동작함 | |
| getJsFile () | |
| js file 목록을 return | |
| _getJsFile () | |
| js file 목록을 return | |
| addCSSFile ($file, $optimized=true, $media= 'all', $targetie= '', $index=null) | |
| CSS file 추가. | |
| _addCSSFile ($file, $optimized, $media, $targetie, $index) | |
| CSS file 추가. | |
| unloadCSSFile ($file, $optimized=true, $media= 'all', $targetie= '') | |
| css file을 제거 | |
| _unloadCSSFile ($file, $optimized, $media, $targetie) | |
| css file을 제거 | |
| unloadAllCSSFiles () | |
| 모든 CSS File을 제거 | |
| _unloadAllCSSFiles () | |
| getCSSFile () | |
| CSS file 목록 return. | |
| _getCSSFile () | |
| CSS file 목록 return. | |
| loadJavascriptPlugin ($plugin_name) | |
| javascript plugin load | |
| _loadJavascriptPlugin ($plugin_name) | |
| addHtmlHeader ($header) | |
| HtmlHeader 추가. | |
| _addHtmlHeader ($header) | |
| HtmlHeader 추가. | |
| getHtmlHeader () | |
| HtmlHeader return. | |
| _getHtmlHeader () | |
| HtmlHeader return. | |
| addBodyClass ($class_name) | |
| Html Body에 css class 추가. | |
| _addBodyClass ($class_name) | |
| Html Body에 css class 추가. | |
| getBodyClass () | |
| Html Body에 css class return. | |
| _getBodyClass () | |
| Html Body에 css class return. | |
| addBodyHeader ($header) | |
| BodyHeader 추가. | |
| _addBodyHeader ($header) | |
| BodyHeader 추가. | |
| getBodyHeader () | |
| BodyHeader return. | |
| _getBodyHeader () | |
| BodyHeader return. | |
| addHtmlFooter ($footer) | |
| HtmlFooter 추가. | |
| _addHtmlFooter ($footer) | |
| HtmlFooter 추가. | |
| getHtmlFooter () | |
| HtmlFooter return. | |
| _getHtmlFooter () | |
| HtmlFooter return. | |
| getConfigFile () | |
| db설정내용이 저장되어 있는 config file의 path를 return | |
| getFTPConfigFile () | |
| ftp설정내용이 저장되어 있는 config file의 path를 return | |
| isInstalled () | |
| 설치가 되어 있는지에 대한 체크 | |
| transContent ($content) | |
| 내용의 위젯이나 기타 기능에 대한 code를 실제 code로 변경 | |
| isAllowRewrite () | |
| rewrite mod 사용에 대한 변수 return | |
Public 속성 | |
| $allow_rewrite = false | |
| rewrite mod 사용에 대한 변수 | |
| $request_method = 'GET' | |
| GET/POST/XMLRPC 중 어떤 방식으로 요청이 왔는지에 대한 값이 세팅. GET/POST/XML 3가지가 있음. | |
| $response_method = '' | |
| HTML/XMLRPC 중 어떤 방식으로 결과를 출력할지 결정. (강제 지정전까지는 request_method를 따름). | |
| $context = NULL | |
| request parameter 및 각종 환경 변수등을 정리하여 담을 변수 | |
| $db_info = NULL | |
| DB 정보. | |
| $ftp_info = NULL | |
| FTP 정보. | |
| $ssl_actions = array() | |
| ssl로 전송해야 할 action등록 (common/js/xml_handler.js에서 ajax통신시 활용) | |
| $js_files = array() | |
| display시에 사용하게 되는 js files의 목록 | |
| $css_files = array() | |
| display시에 사용하게 되는 css files의 목록 | |
| $html_header = NULL | |
| display시에 사용하게 되는 <head>..</head>내의 스크립트코드 | |
| $body_class = array() | |
| display시에 사용하게 되는 <body> 안에 출력될 class | |
| $body_header = NULL | |
| display시에 사용하게 되는 <body> 바로 다음에 출력될 스크립트 코드 | |
| $html_footer = NULL | |
| display시에 사용하게 되는 </body> 바로 앞에 추가될 코드 | |
| $path = '' | |
| zbxe의 경로 | |
| $lang_type = '' | |
| 언어 정보 기본으로 ko. HTTP_USER_AGENT나 사용자의 직접 세팅(쿠키이용)등을 통해 변경됨 | |
| $lang = NULL | |
| 언어 데이터를 담고 있는 변수 | |
| $loaded_lang_files = array() | |
| 로딩된 언어파일의 목록 (재로딩을 피하기 위함) | |
| $site_title = '' | |
| 현 사이트의 browser title. Context::setBrowserTitle() 로 변경 가능 | |
| $get_vars = NULL | |
| form이나 get으로 요청이 들어온 변수만 별도로 관리 | |
| $is_uploaded = false | |
| 첨부파일이 업로드 된 요청이였는지에 대한 체크 플래그 | |
Request Argument/환경변수등의 모든 Context를 관리 Context 클래스는 Context::methodname() 처럼 쉽게 사용하기 위해 만들어진 객체를 받아서 호출하는 구조를 위해 이중 method 구조를 가지고 있다.
Context.class.php 파일의 14 번째 라인에서 정의되었습니다.
| Context::_addBodyClass | ( | $ | class_name | ) |
Html Body에 css class 추가.
Context.class.php 파일의 1350 번째 라인에서 정의되었습니다.
| Context::_addBodyHeader | ( | $ | header | ) |
BodyHeader 추가.
Context.class.php 파일의 1383 번째 라인에서 정의되었습니다.
| Context::_addBrowserTitle | ( | $ | site_title | ) |
사이트 title adding
Context.class.php 파일의 435 번째 라인에서 정의되었습니다.
다음을 참조함 : $site_title.
00435 { 00436 if($this->site_title) $this->site_title .= ' - '.$site_title; 00437 else $this->site_title .= $site_title; 00438 }
| Context::_addCSSFile | ( | $ | file, | |
| $ | optimized, | |||
| $ | media, | |||
| $ | targetie, | |||
| $ | index | |||
| ) |
CSS file 추가.
Context.class.php 파일의 1215 번째 라인에서 정의되었습니다.
01215 { 01216 if(strpos($file,'://')===false && substr($file,0,1)!='/' && substr($file,0,1)!='.') $file = './'.$file; 01217 $file = str_replace(array('/./','//'),'/',$file); 01218 while(strpos($file,'/../')) $file = preg_replace('/\/([^\/]+)\/\.\.\//s','/',$file); 01219 01220 if(in_array($file, $this->css_files)) return; 01221 01222 if(is_null($index)) $index=count($this->css_files); 01223 for($i=$index;array_key_exists($i,$this->css_files);$i++); 01224 01225 //if(preg_match('/^http:\/\//i',$file)) $file = str_replace(realpath("."), ".", realpath($file)); 01226 $this->css_files[$i] = array('file' => $file, 'optimized' => $optimized, 'media' => $media, 'targetie' => $targetie); 01227 }
| Context::_addHtmlFooter | ( | $ | footer | ) |
HtmlFooter 추가.
Context.class.php 파일의 1413 번째 라인에서 정의되었습니다.
| Context::_addHtmlHeader | ( | $ | header | ) |
HtmlHeader 추가.
Context.class.php 파일의 1320 번째 라인에서 정의되었습니다.
| Context::_addJsFile | ( | $ | file, | |
| $ | optimized, | |||
| $ | targetie, | |||
| $ | index | |||
| ) |
js file을 추가
Context.class.php 파일의 1117 번째 라인에서 정의되었습니다.
01117 { 01118 if(strpos($file,'://')===false && substr($file,0,1)!='/' && substr($file,0,1)!='.') $file = './'.$file; 01119 $file = str_replace(array('/./','//'),'/',$file); 01120 while(strpos($file,'/../')) $file = preg_replace('/\/([^\/]+)\/\.\.\//s','/',$file); 01121 01122 if(in_array($file, $this->js_files)) return; 01123 01124 if(is_null($index)) $index=count($this->js_files); 01125 for($i=$index;array_key_exists($i,$this->js_files);$i++); 01126 $this->js_files[$i] = array('file' => $file, 'optimized' => $optimized, 'targetie' => $targetie); 01127 }
| Context::_addSSLAction | ( | $ | action | ) |
Context.class.php 파일의 1083 번째 라인에서 정의되었습니다.
| Context::_filterRequestVar | ( | $ | key, | |
| $ | val, | |||
| $ | do_stripslashes = 1 | |||
| ) |
변수명에 따라서 필터링 처리 _srl, page, cpage등의 변수는 integer로 형변환
Context.class.php 파일의 702 번째 라인에서 정의되었습니다.
00702 { 00703 if( ($key == "page" || $key == "cpage" || substr($key,-3)=="srl")) return !preg_match('/^[0-9,]+$/',$val)?(int)$val:$val; 00704 if(is_array($val) && count($val) ) { 00705 foreach($val as $k => $v) { 00706 if($do_stripslashes && version_compare(PHP_VERSION, "5.9.0", "<") && get_magic_quotes_gpc()) $v = stripslashes($v); 00707 $v = trim($v); 00708 $val[$k] = $v; 00709 } 00710 } else { 00711 if($do_stripslashes && version_compare(PHP_VERSION, "5.9.0", "<") && get_magic_quotes_gpc()) $val = stripslashes($val); 00712 $val = trim($val); 00713 } 00714 return $val; 00715 }
| Context::_get | ( | $ | key | ) |
key값에 해당하는 값을 return
Context.class.php 파일의 1013 번째 라인에서 정의되었습니다.
| Context::_getAll | ( | ) |
모든 데이터를 return
Context.class.php 파일의 1055 번째 라인에서 정의되었습니다.
| Context::_getBodyClass | ( | ) |
Html Body에 css class return.
Context.class.php 파일의 1365 번째 라인에서 정의되었습니다.
| Context::_getBodyHeader | ( | ) |
BodyHeader return.
Context.class.php 파일의 1398 번째 라인에서 정의되었습니다.
| Context::_getBrowserTitle | ( | ) |
사이트 title return
Context.class.php 파일의 467 번째 라인에서 정의되었습니다.
다음을 참조함 : getController().
00467 { 00468 $oModuleController = &getController('module'); 00469 $oModuleController->replaceDefinedLangCode($this->site_title); 00470 return $this->site_title; 00471 }

| Context::_getCSSFile | ( | ) |
CSS file 목록 return.
Context.class.php 파일의 1272 번째 라인에서 정의되었습니다.
01272 { 01273 require_once(_XE_PATH_."classes/optimizer/Optimizer.class.php"); 01274 $oOptimizer = new Optimizer(); 01275 return $oOptimizer->getOptimizedFiles($this->_getUniqueFileList($this->css_files), "css"); 01276 }
| Context::_getDBInfo | ( | ) |
DB 정보가 담긴 object를 return.
Context.class.php 파일의 291 번째 라인에서 정의되었습니다.
| Context::_getDBType | ( | ) |
DB의 db_type을 return.
Context.class.php 파일의 261 번째 라인에서 정의되었습니다.
| Context::_getFTPInfo | ( | ) |
FTP 정보가 담긴 object를 return.
Context.class.php 파일의 415 번째 라인에서 정의되었습니다.
다음을 참조함 : $ftp_info, getFTPConfigFile(), isFTPRegisted(), null.
00415 { 00416 if(!$this->isFTPRegisted()) return null; 00417 00418 $ftp_config_file = $this->getFTPConfigFile(); 00419 @include($ftp_config_file); 00420 return $ftp_info; 00421 }

| Context::_getHtmlFooter | ( | ) |
HtmlFooter return.
Context.class.php 파일의 1428 번째 라인에서 정의되었습니다.
| Context::_getHtmlHeader | ( | ) |
HtmlHeader return.
Context.class.php 파일의 1335 번째 라인에서 정의되었습니다.
| Context::_getJsFile | ( | ) |
js file 목록을 return
Context.class.php 파일의 1198 번째 라인에서 정의되었습니다.
01198 { 01199 require_once(_XE_PATH_."classes/optimizer/Optimizer.class.php"); 01200 $oOptimizer = new Optimizer(); 01201 return $oOptimizer->getOptimizedFiles($this->_getUniqueFileList($this->js_files), "js"); 01202 }
| Context::_getLangType | ( | ) |
lang_type을 return
Context.class.php 파일의 527 번째 라인에서 정의되었습니다.
| Context::_getRequestMethod | ( | ) |
Request Method값을 return (GET/POST/XMLRPC/JSON);.
Context.class.php 파일의 759 번째 라인에서 정의되었습니다.
| Context::_getRequestVars | ( | ) |
GET/POST/XMLRPC에서 넘어온 변수값을 return.
Context.class.php 파일의 1070 번째 라인에서 정의되었습니다.
| Context::_getResponseMethod | ( | ) |
Context.class.php 파일의 616 번째 라인에서 정의되었습니다.
00616 { 00617 if($this->response_method) return $this->response_method; 00618 00619 $RequestMethod = $this->_getRequestMethod(); 00620 if($RequestMethod=="XMLRPC") return "XMLRPC"; 00621 else if($RequestMethod=="JSON") return "JSON"; 00622 return "HTML"; 00623 }
| Context::_gets | ( | $ | num_args, | |
| $ | args_list | |||
| ) |
받고자 하는 변수만 object에 입력하여 받음
key1, key2, key3 .. 등의 인자를 주어 여러개의 변수를 object vars로 세팅하여 받을 수 있음
Context.class.php 파일의 1036 번째 라인에서 정의되었습니다.
다음을 참조함 : $output.
| Context::_getSSLActions | ( | ) |
Context.class.php 파일의 1093 번째 라인에서 정의되었습니다.
| Context::_getUniqueFileList | ( | $ | files | ) |
array_unique와 동작은 동일하나 file 첨자에 대해서만 동작함
Context.class.php 파일의 1172 번째 라인에서 정의되었습니다.
01172 { 01173 ksort($files); 01174 $files = array_values($files); 01175 $filenames = array(); 01176 $size = count($files); 01177 for($i = 0; $i < $size; ++ $i) 01178 { 01179 if(in_array($files[$i]['file'], $filenames)) 01180 unset($files[$i]); 01181 $filenames[] = $files[$i]['file']; 01182 } 01183 01184 return $files; 01185 }
| Context::_getUrl | ( | $ | num_args = 0, |
|
| $ | args_list = array(), |
|||
| $ | domain = null, |
|||
| $ | encode = true | |||
| ) |
요청받은 url에 args_list를 적용하여 return
Context.class.php 파일의 789 번째 라인에서 정의되었습니다.
다음을 참조함 : elseif, get(), getScriptPath(), isSiteID(), null.
00789 { 00790 static $site_module_info = null; 00791 static $current_info = null; 00792 00793 // 가상 사이트 정보를 구함 00794 if(is_null($site_module_info)) $site_module_info = Context::get('site_module_info'); 00795 00796 // SiteID 요청시 전처리 ($domain이 vid 형식일 경우 $domain값을 없애고 vid로 처리하도록 함) 00797 if($domain && isSiteID($domain)) { 00798 $vid = $domain; 00799 $domain = ''; 00800 } 00801 00802 // $domain, $vid값이 없을 경우(= 현재 사이트 정보를 이용함) 00803 if(!$domain && !$vid) { 00804 if($site_module_info->domain && isSiteID($site_module_info->domain)) $vid = $site_module_info->domain; 00805 else $domain = $site_module_info->domain; 00806 } 00807 00808 // $domain값이 있을 경우 현재 요청된 도메인과 비교해서 동일할 경우 제거 그렇지 않으면 http 프로토콜을 제거하고 제일 뒤에 / 를 붙임 00809 if($domain) { 00810 $domain_info = parse_url($domain); 00811 if(is_null($current_info)) $current_info = parse_url(($_SERVER['HTTPS']=='on'?'https':'http').'://'.$_SERVER['HTTP_HOST'].getScriptPath()); 00812 if($domain_info['host'].$domain_info['path']==$current_info['host'].$current_info['path']) { 00813 unset($domain); 00814 } else { 00815 $domain = preg_replace('/^(http|https):\/\//i','', trim($domain)); 00816 if(substr($domain,-1) != '/') $domain .= '/'; 00817 } 00818 } 00819 00820 // 변수 정리 00821 $get_vars = null; 00822 00823 // GET 변수가 없거나 변수 초기화 지정이 되었을 경우 00824 if(!$this->get_vars || $args_list[0]=='') { 00825 // 요청받은 변수가 있고 첫번째 인자가 '' 라서 초기화를 해야 할 경우 요청받은 변수를 정리 00826 if(is_array($args_list) && $args_list[0]=='') array_shift($args_list); 00827 // 초기화를 원하지 않을 경우 GET 변수를 배열로 처리 00828 } else { 00829 $get_vars = get_object_vars($this->get_vars); 00830 } 00831 00832 // 새로 꾸미기를 원하는 변수를 정리 00833 for($i=0,$c=count($args_list);$i<$c;$i=$i+2) { 00834 $key = $args_list[$i]; 00835 $val = trim($args_list[$i+1]); 00836 00837 // 값이 없으면 GET변수에서 해당 키를 제거 00838 if(!isset($val) || strlen($val)<1) { 00839 unset($get_vars[$key]); 00840 continue; 00841 } 00842 // 새로운 변수를 정리 00843 $get_vars[$key] = $val; 00844 } 00845 00846 // 변수중 vid, rnd값 제거 00847 unset($get_vars['rnd']); 00848 if($vid) $get_vars['vid'] = $vid; 00849 else unset($get_vars['vid']); 00850 00851 // action명이 변경되었던 것에 대해 호환성을 유지하기 위한 강제 값 변경 00852 switch($get_vars['act']) { 00853 case 'dispMemberFriend' : $get_vars['act'] = 'dispCommunicationFriend'; break; 00854 case 'dispMemberMessages' : $get_vars['act'] = 'dispCommunicationMessages'; break; 00855 case 'dispDocumentAdminManageDocument' : $get_vars['act'] = 'dispDocumentManageDocument'; break; 00856 case 'dispModuleAdminSelectList' : $get_vars['act'] = 'dispModuleSelectList'; break; 00857 } 00858 00859 // URL 구성 00860 $query = null; 00861 if($var_count = count($get_vars)) { 00862 // rewrite mod 사용시 00863 if($this->allow_rewrite) { 00864 $var_keys = array_keys($get_vars); 00865 asort($var_keys); 00866 $target = implode('.',$var_keys); 00867 switch($target) { 00868 case 'vid' : $query = $get_vars['vid']; break; 00869 case 'mid' : $query = $get_vars['mid']; break; 00870 case 'document_srl' : $query = $get_vars['document_srl']; break; 00871 case 'document_srl.mid' : $query = $get_vars['mid'].'/'.$get_vars['document_srl']; break; 00872 case 'entry.mid' : $query = $get_vars['mid'].'/entry/'.$get_vars['entry']; break; 00873 case 'act.document_srl.key' : $query = $get_vars['act']=='trackback'?$get_vars['document_srl'].'/'.$get_vars['key'].'/'.$get_vars['act']:''; break; 00874 case 'mid.vid' : $query = $get_vars['vid'].'/'.$get_vars['mid']; break; 00875 case 'document_srl.vid' : $query = $get_vars['vid'].'/'.$get_vars['document_srl']; break; 00876 case 'document_srl.mid.vid' : $query = $get_vars['vid'].'/'.$get_vars['mid'].'/'.$get_vars['document_srl']; break; 00877 case 'entry.mid.vid' : $query = $get_vars['vid'].'/'.$get_vars['mid'].'/entry/'.$get_vars['entry']; break; 00878 case 'act.document_srl.key.vid' : $query = $get_vars['act']=='trackback'?$get_vars['vid'].'/'.$get_vars['document_srl'].'/'.$get_vars['key'].'/'.$get_vars['act']:''; break; 00879 } 00880 } 00881 00882 // rewrite mod 미사용 또는 query값이 생성되지 않았을 경우 get argument로 생성 00883 if(!$query) { 00884 foreach($get_vars as $key => $val) { 00885 if(is_array($val) && count($val)) { 00886 foreach($val as $k => $v) $query .= ($query?'&':'').$key.'['.$k.']='.urlencode($v); 00887 } else { 00888 $query .= ($query?'&':'').$key.'='.urlencode($val); 00889 } 00890 } 00891 if($query) $query = '?'.$query; 00892 } 00893 } 00894 00895 // 항상 SSL을 이용하고 현재 SSL이 아닌 경우 https에 대한 prefix를 붙임 00896 if(Context::get('_use_ssl')=='always') { 00897 $query = $this->getRequestUri(ENFORCE_SSL, $domain).$query; 00898 // 상황에 따라 혹은 지정된 대상만 SSL 취급될 경우 00899 } elseif(Context::get('_use_ssl')=='optional') { 00900 $ssl_mode = RELEASE_SSL; 00901 if($get_vars['act'] && $this->_isExistsSSLAction($get_vars['act'])) $ssl_mode = ENFORCE_SSL; 00902 $query = $this->getRequestUri($ssl_mode, $domain).$query; 00903 // SSL 을 사용하지 않을 경우 00904 } else { 00905 // SSL상태인데 대상이 SSL이 아닌 경우 00906 if($_SERVER['HTTPS']=='on' ) $query = $this->getRequestUri(ENFORCE_SSL, $domain).$query; 00907 00908 // $domain 값이 있을 경우 00909 else if($domain) $query = $this->getRequestUri(FOLLOW_REQUEST_SSL, $domain).$query; 00910 00911 // $domain 값이 없을 경우 00912 else $query = getScriptPath().$query; 00913 } 00914 00915 if($encode) return htmlspecialchars($query); 00916 return $query; 00917 }

| Context::_isExistsSSLAction | ( | $ | action | ) |
Context.class.php 파일의 1102 번째 라인에서 정의되었습니다.
| Context::_isUploaded | ( | ) |
업로드 되었을 경우 return true
Context.class.php 파일의 728 번째 라인에서 정의되었습니다.
| Context::_loadDBInfo | ( | ) |
DB 정보를 설정하고 DB Type과 DB 정보를 return.
Context.class.php 파일의 221 번째 라인에서 정의되었습니다.
다음을 참조함 : $db_info, $GLOBALS, _setDBInfo(), getConfigFile(), isInstalled().
다음에 의해서 참조됨 : init().
00221 { 00222 if(!$this->isInstalled()) return; 00223 00224 // db 정보 설정 00225 $db_config_file = $this->getConfigFile(); 00226 if(file_exists($db_config_file)) @include($db_config_file); 00227 00228 if(!$db_info->time_zone) $db_info->time_zone = date("O"); 00229 if(!$db_info->use_optimizer || $db_info->use_optimizer != 'N') $db_info->use_optimizer = 'Y'; 00230 else $db_info->use_optimizer = 'N'; 00231 if(!$db_info->qmail_compatibility || $db_info->qmail_compatibility != 'Y') $db_info->qmail_compatibility = 'N'; 00232 else $db_info->qmail_compatibility = 'Y'; 00233 if(!$db_info->use_ssl) $db_info->use_ssl = 'none'; 00234 00235 $this->_setDBInfo($db_info); 00236 00237 $GLOBALS['_time_zone'] = $db_info->time_zone; 00238 $GLOBALS['_qmail_compatibility'] = $db_info->qmail_compatibility; 00239 $this->set('_use_ssl', $db_info->use_ssl); 00240 if($db_info->http_port) 00241 { 00242 $this->set('_http_port', $db_info->http_port); 00243 } 00244 if($db_info->https_port) 00245 { 00246 $this->set('_https_port', $db_info->https_port); 00247 } 00248 }

| Context::_loadJavascriptPlugin | ( | $ | plugin_name | ) |
Context.class.php 파일의 1286 번째 라인에서 정의되었습니다.
01286 { 01287 static $loaded_plugins = array(); 01288 if($loaded_plugins[$plugin_name]) return; 01289 $loaded_plugins[$plugin_name] = true; 01290 01291 $plugin_path = './common/js/plugins/'.$plugin_name.'/'; 01292 if(!is_dir($plugin_path)) return; 01293 01294 $info_file = $plugin_path.'plugin.load'; 01295 if(!file_exists($info_file)) return; 01296 01297 $list = file($info_file); 01298 for($i=0,$cnt=count($list);$i<$cnt;$i++) { 01299 $filename = trim($list[$i]); 01300 if(!$filename) continue; 01301 if(substr($filename,0,2)=='./') $filename = substr($filename,2); 01302 if(preg_match('/\.js$/i',$filename)) $this->_addJsFile($plugin_path.$filename, false, '', null); 01303 elseif(preg_match('/\.css$/i',$filename)) $this->_addCSSFile($plugin_path.$filename, false, 'all','', null); 01304 } 01305 01306 if(is_dir($plugin_path.'lang')) $this->_loadLang($plugin_path.'lang'); 01307 }
| Context::_loadLang | ( | $ | path | ) |
지정된 언어파일 로드
loaded_lang_files 변수를 이용하여 한번 로드된 파일을 다시 로드하지 않음
Context.class.php 파일의 486 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : init().
00486 { 00487 global $lang; 00488 if(!$this->lang_type) return; 00489 if(substr($path,-1)!='/') $path .= '/'; 00490 $filename = sprintf('%s%s.lang.php', $path, $this->lang_type); 00491 if(!file_exists($filename)) $filename = sprintf('%s%s.lang.php', $path, 'ko'); 00492 if(!file_exists($filename)) return; 00493 if(!is_array($this->loaded_lang_files)) $this->loaded_lang_files = array(); 00494 if(in_array($filename, $this->loaded_lang_files)) return; 00495 $this->loaded_lang_files[] = $filename; 00496 if(file_exists($filename)) @include($filename); 00497 }
| Context::_set | ( | $ | key, | |
| $ | val, | |||
| $ | set_to_get_vars = false | |||
| ) |
key/val로 context vars 세팅
Context.class.php 파일의 997 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : _setLangType(), init().
| Context::_setBrowserTitle | ( | $ | site_title | ) |
사이트 title setting
Context.class.php 파일의 452 번째 라인에서 정의되었습니다.
다음을 참조함 : $site_title.
00452 { 00453 $this->site_title = $site_title; 00454 }
| Context::_setDBInfo | ( | $ | db_info | ) |
DB 정보가 담긴 object를 return.
Context.class.php 파일의 276 번째 라인에서 정의되었습니다.
다음을 참조함 : $db_info.
다음에 의해서 참조됨 : _loadDBInfo().
00276 { 00277 $this->db_info = $db_info; 00278 }
| Context::_setJSONRequestArgument | ( | ) |
JSON 방식일 경우 처리.
Context.class.php 파일의 666 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : init().
00666 { 00667 if($this->_getRequestMethod() != 'JSON') return; 00668 // if(!$GLOBALS['HTTP_RAW_POST_DATA']) return; 00669 00670 $params = array(); 00671 parse_str($GLOBALS['HTTP_RAW_POST_DATA'],$params); 00672 00673 foreach($params as $key => $val) { 00674 $val = $this->_filterRequestVar($key, $val,0); 00675 $this->_set($key, $val, true); 00676 } 00677 }
| Context::_setLangType | ( | $ | lang_type = 'ko' |
) |
lang_type을 세팅 (기본 ko)
Context.class.php 파일의 511 번째 라인에서 정의되었습니다.
다음을 참조함 : $lang_type, _set().
00511 { 00512 $this->lang_type = $lang_type; 00513 $this->_set('lang_type',$lang_type); 00514 }

| Context::_setRequestArgument | ( | ) |
GET/POST방식일 경우 처리.
Context.class.php 파일의 649 번째 라인에서 정의되었습니다.
다음을 참조함 : elseif.
다음에 의해서 참조됨 : init().
00649 { 00650 if($this->_getRequestMethod() == 'XMLRPC' || $this->_getRequestMethod() == 'JSON') return; 00651 if(!count($_REQUEST)) return; 00652 00653 foreach($_REQUEST as $key => $val) { 00654 if($val === "") continue; 00655 $val = $this->_filterRequestVar($key, $val); 00656 if($this->_getRequestMethod()=='GET'&&isset($_GET[$key])) $set_to_vars = true; 00657 elseif($this->_getRequestMethod()=='POST'&&isset($_POST[$key])) $set_to_vars = true; 00658 else $set_to_vars = false; 00659 $this->_set($key, $val, $set_to_vars); 00660 } 00661 }
| Context::_setRequestMethod | ( | $ | type = '' |
) |
request method가 어떤것인지 판단하여 저장 (GET/POST/XMLRPC/JSON)
Context.class.php 파일의 637 번째 라인에서 정의되었습니다.
다음을 참조함 : $GLOBALS.
다음에 의해서 참조됨 : init().
00637 { 00638 if($type) return $this->request_method = $type; 00639 00640 if(strpos($_SERVER['CONTENT_TYPE'],'json')) return $this->request_method = 'JSON'; 00641 if($GLOBALS['HTTP_RAW_POST_DATA']) return $this->request_method = "XMLRPC"; 00642 00643 $this->request_method = $_SERVER['REQUEST_METHOD']; 00644 }
| Context::_setResponseMethod | ( | $ | method = "HTML" |
) |
Context.class.php 파일의 601 번째 라인에서 정의되었습니다.
| Context::_setUploadedArgument | ( | ) |
업로드된 파일이 있을 경우도 역시 context에 통합 처리 (단 정상적인 업로드인지 체크)
Context.class.php 파일의 735 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : init().
00735 { 00736 if($this->_getRequestMethod() != 'POST') return; 00737 if(!preg_match("/multipart\/form-data/i",$_SERVER['CONTENT_TYPE'])) return; 00738 if(!$_FILES) return; 00739 00740 foreach($_FILES as $key => $val) { 00741 $tmp_name = $val['tmp_name']; 00742 if(!$tmp_name || !is_uploaded_file($tmp_name)) continue; 00743 $this->_set($key, $val, true); 00744 $this->is_uploaded = true; 00745 } 00746 }
| Context::_setXmlRpcArgument | ( | ) |
XML RPC일때.
Context.class.php 파일의 682 번째 라인에서 정의되었습니다.
다음을 참조함 : $params.
다음에 의해서 참조됨 : init().
00682 { 00683 if($this->_getRequestMethod() != 'XMLRPC') return; 00684 $oXml = new XmlParser(); 00685 $xml_obj = $oXml->parse(); 00686 00687 $params = $xml_obj->methodcall->params; 00688 unset($params->node_name); 00689 00690 unset($params->attrs); 00691 if(!count($params)) return; 00692 foreach($params as $key => $obj) { 00693 $val = $this->_filterRequestVar($key, $obj->body,0); 00694 $this->_set($key, $val, true); 00695 } 00696 }
| Context::_unloadAllCSSFiles | ( | ) |
Context.class.php 파일의 1257 번째 라인에서 정의되었습니다.
| Context::_unloadAllJsFiles | ( | ) |
Context.class.php 파일의 1157 번째 라인에서 정의되었습니다.
| Context::_unloadCSSFile | ( | $ | file, | |
| $ | optimized, | |||
| $ | media, | |||
| $ | targetie | |||
| ) |
css file을 제거
Context.class.php 파일의 1240 번째 라인에서 정의되었습니다.
| Context::_unloadJsFile | ( | $ | file, | |
| $ | optimized, | |||
| $ | targetie | |||
| ) |
js file을 제거
Context.class.php 파일의 1140 번째 라인에서 정의되었습니다.
| Context::addBodyClass | ( | $ | class_name | ) |
Html Body에 css class 추가.
Context.class.php 파일의 1342 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01342 { 01343 $oContext = &Context::getInstance(); 01344 return $oContext->_addBodyClass($class_name); 01345 }

| Context::addBodyHeader | ( | $ | header | ) |
BodyHeader 추가.
Context.class.php 파일의 1375 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : layoutModel::doActivateFaceOff().
01375 { 01376 $oContext = &Context::getInstance(); 01377 return $oContext->_addBodyHeader($header); 01378 }

| Context::addBrowserTitle | ( | $ | site_title | ) |
사이트 title adding
Context.class.php 파일의 426 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, $site_title, getInstance().
00426 { 00427 if(!$site_title) return; 00428 $oContext = &Context::getInstance(); 00429 $oContext->_addBrowserTitle($site_title); 00430 }

| Context::addCSSFile | ( | $ | file, | |
| $ | optimized = true, |
|||
| $ | media = 'all', |
|||
| $ | targetie = '', |
|||
| $ | index = null | |||
| ) |
CSS file 추가.
Context.class.php 파일의 1207 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : layoutModel::doActivateFaceOff(), init(), DisplayHandler::printContent(), DisplayHandler::transMeta(), editorController::triggerEditorComponentCompile().
01207 { 01208 $oContext = &Context::getInstance(); 01209 return $oContext->_addCSSFile($file, $optimized, $media, $targetie,$index); 01210 }

| Context::addHtmlFooter | ( | $ | footer | ) |
HtmlFooter 추가.
Context.class.php 파일의 1405 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : layoutModel::doActivateFaceOff(), DisplayHandler::printContent().
01405 { 01406 $oContext = &Context::getInstance(); 01407 return $oContext->_addHtmlFooter($footer); 01408 }

| Context::addHtmlHeader | ( | $ | header | ) |
HtmlHeader 추가.
Context.class.php 파일의 1312 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : layoutAdminView::dispLayoutAdminLayoutModify(), layoutAdminView::dispLayoutAdminPreview(), moduleView::dispModuleFileBox(), opageView::getHtmlPage(), ModuleHandler::init(), DisplayHandler::moveStyleToHeader(), smartphoneXE::procSmartPhone(), smartphoneXE::smartphoneXE(), editorController::triggerEditorComponentCompile().
01312 { 01313 $oContext = &Context::getInstance(); 01314 return $oContext->_addHtmlHeader($header); 01315 }

| Context::addJsFile | ( | $ | file, | |
| $ | optimized = true, |
|||
| $ | targetie = '', |
|||
| $ | index = null | |||
| ) |
js file을 추가
Context.class.php 파일의 1109 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : XmlJsFilter::compile(), menuAdminView::init(), init(), editorController::triggerEditorComponentCompile().
01109 { 01110 $oContext = &Context::getInstance(); 01111 return $oContext->_addJsFile($file, $optimized, $targetie,$index); 01112 }

| Context::addJsFilter | ( | $ | path, | |
| $ | filename | |||
| ) |
javascript filter 추가
Context.class.php 파일의 1164 번째 라인에서 정의되었습니다.
01164 { 01165 $oXmlFilter = new XmlJSFilter($path, $filename); 01166 $oXmlFilter->compile(); 01167 }
| Context::addSSLAction | ( | $ | action | ) |
SSL로 인증되어야 할 action이 있을 경우 등록 common/js/xml_handler.js에서 이 action들에 대해서 https로 전송되도록 함.
Context.class.php 파일의 1078 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : member::member().
01078 { 01079 $oContext = &Context::getInstance(); 01080 return $oContext->_addSSLAction($action); 01081 }

| Context::checkSSO | ( | ) |
SSO URL이 설정되어 있고 아직 SSO URL검사를 하지 않았다면 return true.
Context.class.php 파일의 354 번째 라인에서 정의되었습니다.
다음을 참조함 : get(), getRequestMethod(), getRequestUri(), getRequestUrl(), isInstalled().
00354 { 00355 // GET 접속이 아니거나 설치가 안되어 있으면 패스 00356 if(Context::getRequestMethod()!='GET' || !Context::isInstalled() || in_array(Context::get('act'),array('rss','atom'))) return true; 00357 00358 // DB info에 설정된 Default URL이 없다면 무조건 무사통과 00359 $default_url = trim($this->db_info->default_url); 00360 if(!$default_url) return true; 00361 if(substr($default_url,-1)!='/') $default_url .= '/'; 00362 00363 // SSO 검증을 요청 받는 사이트 00364 if($default_url == Context::getRequestUri()) { 00365 if(Context::get('default_url')) { 00366 $url = base64_decode(Context::get('default_url')); 00367 $url_info = parse_url($url); 00368 $url_info['query'].= ($url_info['query']?'&':'').'SSOID='.session_id(); 00369 $redirect_url = sprintf('%s://%s%s%s?%s',$url_info['scheme'],$url_info['host'],$url_info['port']?':'.$url_info['port']:'',$url_info['path'], $url_info['query']); 00370 header("location:".$redirect_url); 00371 return false; 00372 } 00373 // SSO 검증을 요청하는 사이트 00374 } else { 00375 // SSO 결과를 받는 경우 session_name() 세팅 00376 if(Context::get('SSOID')) { 00377 $session_name = Context::get('SSOID'); 00378 setcookie(session_name(), $session_name); 00379 00380 $url = preg_replace('/([\?\&])$/','',str_replace('SSOID='.$session_name,'',Context::getRequestUrl())); 00381 header("location:".$url); 00382 return false; 00383 // SSO 결과를 요청 00384 } else if($_COOKIE['sso']!=md5(Context::getRequestUri()) && !Context::get('SSOID')) { 00385 setcookie('sso',md5(Context::getRequestUri()),0,'/'); 00386 $url = sprintf("%s?default_url=%s", $default_url, base64_encode(Context::getRequestUrl())); 00387 header("location:".$url); 00388 return false; 00389 } 00390 } 00391 00392 return true; 00393 }

| Context::close | ( | ) |
DB및 기타 자원들의 close.
Context.class.php 파일의 201 번째 라인에서 정의되었습니다.
다음을 참조함 : getInstance().
다음에 의해서 참조됨 : printContent(), fileController::procFileDownload(), layoutAdminController::procLayoutAdminUserLayoutExport(), memberController::procMemberOpenIDValidate(), memberController::procMemberValidateAddOpenIDToMember().
00201 { 00202 // Session Close 00203 if(function_exists('session_write_close')) session_write_close(); 00204 00205 // DB close 00206 $oDB = &DB::getInstance(); 00207 if(is_object($oDB)&&method_exists($oDB, 'close')) $oDB->close(); 00208 }

| Context::convertEncoding | ( | $ | source_obj | ) |
object내의 variables의 문자열을 utf8로 변경
Context.class.php 파일의 552 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : convertEncodingStr(), opageView::getHtmlPage(), trackbackController::insertTrackback().
00552 { 00553 $charset_list = array( 00554 'UTF-8', 'EUC-KR', 'CP949', 'ISO8859-1', 'EUC-JP', 'SHIFT_JIS', 'CP932', 00555 'EUC-CN', 'HZ', 'GBK', 'GB18030', 'EUC-TW', 'BIG5', 'CP950', 'BIG5-HKSCS', 00556 'ISO2022-CN', 'ISO2022-CN-EXT', 'ISO2022-JP', 'ISO2022-JP-2', 'ISO2022-JP-1', 00557 'ISO8859-6', 'ISO8859-8', 'JOHAB', 'ISO2022-KR', 'CP1255', 'CP1256', 'CP862', 00558 'ASCII', 'ISO8859-1', 'ISO8850-2', 'ISO8850-3', 'ISO8850-4', 'ISO8850-5', 00559 'ISO8850-7', 'ISO8850-9', 'ISO8850-10', 'ISO8850-13', 'ISO8850-14', 00560 'ISO8850-15', 'ISO8850-16', 'CP1250', 'CP1251', 'CP1252', 'CP1253', 'CP1254', 00561 'CP1257', 'CP850', 'CP866', 00562 ); 00563 00564 $obj = clone($source_obj); 00565 00566 for($i=0;$i<count($charset_list);$i++) { 00567 $charset = $charset_list[$i]; 00568 $flag = true; 00569 foreach($obj as $key=>$val) { 00570 if(!$val) continue; 00571 if($val && iconv($charset,$charset,$val)!=$val) $flag = false; 00572 } 00573 if($flag == true) { 00574 if($charset == 'UTF-8') return $obj; 00575 foreach($obj as $key => $val) $obj->{$key} = iconv($charset,'UTF-8',$val); 00576 return $obj; 00577 } 00578 } 00579 return $obj; 00580 }
| Context::convertEncodingStr | ( | $ | str | ) |
특정 문자열만 utf-8로 변경
Context.class.php 파일의 585 번째 라인에서 정의되었습니다.
다음을 참조함 : convertEncoding().
다음에 의해서 참조됨 : content::_getRssItems(), Optimizer::makeOptimizedFile(), rssAdminController::procRssAdminInsertConfig(), content::requestFeedContents().
00585 { 00586 $obj->str = $str; 00587 $obj = Context::convertEncoding($obj); 00588 return $obj->str; 00589 }

| Context::get | ( | $ | key | ) |
key값에 해당하는 값을 return
Context.class.php 파일의 1005 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : documentModel::_arrangeCategory(), TemplateHandler::_compileIncludeToCode(), _getUrl(), moduleController::_replaceLangCode(), smartphoneXE::_setParentUrl(), DisplayHandler::_toVirtualXmlDoc(), checkSSO(), editorController::deleteSavedDoc(), communicationView::dispCommunicationAddFriend(), communicationView::dispCommunicationAddFriendGroup(), communicationView::dispCommunicationFriend(), communicationView::dispCommunicationMessages(), communicationView::dispCommunicationNewMessage(), communicationView::dispCommunicationSendMessage(), documentView::dispDocumentManageDocument(), editorAdminView::dispEditorAdminSetupComponent(), editorAPI::dispEditorSkinColorset(), installView::dispInstallForm(), mobileXE::displayLangSelect(), layoutAdminView::dispLayoutAdminInfo(), layoutAdminView::dispLayoutAdminLayoutImageList(), layoutAdminView::dispLayoutAdminLayoutModify(), layoutView::dispLayoutInfo(), memberAdminView::dispMemberAdminDeleteForm(), memberAdminView::dispMemberAdminDeleteMembers(), memberAdminView::dispMemberAdminManageGroup(), memberView::dispMemberFindAccount(), memberView::dispMemberInfo(), memberView::dispMemberLoginForm(), memberView::dispMemberOwnDocument(), memberView::dispMemberResendAuthMail(), memberView::dispMemberSavedDocument(), memberView::dispMemberScrappedDocument(), moduleAdminView::dispModuleAdminInfo(), moduleAdminView::dispModuleAdminLangcode(), moduleView::dispModuleSelectList(), pollAdminView::dispPollAdminList(), memberView::dispSavedDocumentList(), memberAPI::dispSavedDocumentList(), widgetView::dispWidgetGenerateCodeInPage(), widgetView::dispWidgetInfo(), layoutModel::doActivateFaceOff(), editorController::doSaveDoc(), mobileXE::getBrowserType(), memberModel::getCombineJoinForm(), commentItem::getContent(), memberModel::getDeniedIDList(), documentModel::getDocumentCategories(), documentModel::getDocumentCategoryTplInfo(), documentModel::getDocumentMenu(), documentModel::getDocumentSrlByAlias(), editorModel::getEditor(), fileAdminModel::getFileList(), communicationModel::getFriendGroupInfo(), communicationModel::getFriendGroups(), communicationModel::getFriends(), moduleModel::getGrant(), mobileXE::getInstance(), memberModel::getJoinFormList(), krzipModel::getKrzipCodeList(), moduleAdminModel::getLangCode(), sessionModel::getLoggedMembers(), pointModel::getMemberList(), memberAdminModel::getMemberList(), communicationModel::getMessages(), moduleAdminModel::getModuleAdminLangCode(), moduleAdminModel::getModuleAdminModuleList(), editorModel::getModuleEditor(), moduleModel::getModuleFileBoxList(), moduleModel::getModuleSrlByMid(), communicationModel::getNewMessage(), wap::getNo(), getRequestUri(), editorModel::getSavedDoc(), commentModel::getTotalCommentList(), trackbackAdminModel::getTotalTrackbackList(), ModuleHandler::init(), init(), adminAdminView::init(), commentController::insertComment(), documentController::insertDocument(), integration_searchView::IS(), communicationModel::isAddedFriend(), communicationModel::isFriend(), smartphoneXE::isFromSmartPhone(), documentItem::isGranted(), commentItem::isGranted(), pollModel::isPolled(), moduleModel::isSiteAdmin(), editorController::makeCache(), moduleAdminController::makeCacheDefinedLangCode(), member::member(), memberTransImageName(), mobileXE::mobileXE(), ModuleHandler::ModuleHandler(), documentController::moveDocumentToTrash(), wap::printBtn(), DisplayHandler::printContent(), login_info::proc(), counter_status::proc(), content::proc(), commentAdminController::procCommentAdminCancelDeclare(), commentController::procCommentDeclare(), commentController::procCommentInsertModuleConfig(), commentController::procCommentVoteDown(), commentController::procCommentVoteUp(), communicationController::procCommunicationAddFriend(), communicationController::procCommunicationAddFriendGroup(), communicationController::procCommunicationDeleteFriend(), communicationController::procCommunicationDeleteFriendGroup(), communicationController::procCommunicationDeleteMessage(), communicationController::procCommunicationDeleteMessages(), communicationController::procCommunicationMoveFriend(), communicationController::procCommunicationRenameFriendGroup(), communicationController::procCommunicationSendMessage(), communicationController::procCommunicationStoreMessage(), communicationController::procCommunicationUpdateAllowMessage(), documentAdminController::procDocumentAdminCancelDeclare(), documentController::procDocumentDeclare(), documentController::procDocumentVoteDown(), documentController::procDocumentVoteUp(), editorAdminController::procEditorAdminMoveListOrder(), editorController::procEditorInsertModuleConfig(), editorController::procEditorLoadSavedDocument(), fileAdminController::procFileAdminInsertModuleConfig(), fileController::procFileDownload(), fileController::procFileIframeUpload(), fileController::procFileUpload(), pollController::procInsert(), installAdminController::procInstallAdminSaveLangSelected(), layoutAdminController::procLayoutAdminCodeReset(), layoutAdminController::procLayoutAdminCodeUpdate(), layoutAdminController::procLayoutAdminDelete(), layoutAdminController::procLayoutAdminUpdate(), layoutAdminController::procLayoutAdminUserImageDelete(), layoutAdminController::procLayoutAdminUserImageUpload(), layoutAdminController::procLayoutAdminUserLayoutExport(), layoutAdminController::procLayoutAdminUserLayoutImport(), layoutAdminController::procLayoutAdminUserValueInsert(), memberAdminController::procMemberAdminDelete(), memberAdminController::procMemberAdminInsertDeniedID(), memberAdminController::procMemberAdminInsertGroup(), memberAdminController::procMemberAdminInsertJoinForm(), memberAdminController::procMemberAdminUpdateDeniedID(), memberAdminController::procMemberAdminUpdateGroup(), memberController::procMemberDeleteOpenIDFromMember(), memberController::procMemberDeleteSavedDocument(), memberController::procMemberDeleteScrap(), memberController::procMemberInsert(), memberController::procMemberLeave(), memberController::procMemberModifyInfo(), memberController::procMemberModifyPassword(), memberController::procMemberOpenIDLeave(), memberController::procMemberOpenIDValidate(), memberController::procMemberSaveDocument(), memberController::procMemberScrapDocument(), memberController::procMemberValidateAddOpenIDToMember(), menuAdminController::procMenuAdminInsert(), moduleAdminController::procModuleAdminDeleteLang(), moduleAdminController::procModuleAdminInsertGrant(), moduleAdminController::procModuleAdminInsertLang(), moduleAdminController::procModuleAdminModuleGrantSetup(), moduleAdminController::procModuleAdminUpdateSkinInfo(), moduleController::procModuleFileBoxAdd(), memberController::procModuleSiteLeave(), memberController::procModuleSiteSignUp(), opageAdminController::procOpageAdminDelete(), opageAdminController::procOpageAdminInsert(), pageAdminController::procPageAdminDelete(), pageAdminController::procPageAdminInsert(), pageAdminController::procPageAdminInsertContent(), pointAdminController::procPointAdminApplyPoint(), pointAdminController::procPointAdminInsertPointModuleConfig(), pointAdminController::procPointAdminReset(), pointAdminController::procPointAdminUpdatePoint(), spamfilterAdminController::procSpamfilterAdminDeleteDeniedWord(), widgetController::procWidgetGenerateCode(), widgetController::procWidgetGenerateCodeInPage(), rssView::rss(), mobileXE::setCharSet(), mobileXE::setLangType(), pointController::triggerBeforeDownloadFile(), editorController::triggerEditorComponentCompile(), rssController::triggerRssUrlInsert(), commentController::updateComment(), documentController::updateDocument(), documentController::updateReadedCount(), sessionController::write().
01005 { 01006 $oContext = &Context::getInstance(); 01007 return $oContext->_get($key); 01008 }

| Context::getAll | ( | ) |
모든 데이터를 return
Context.class.php 파일의 1047 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : moduleAdminController::procModuleAdminCopyModule().
01047 { 01048 $oContext = &Context::getInstance(); 01049 return $oContext->_getAll(); 01050 }

| Context::getBodyClass | ( | ) |
Html Body에 css class return.
Context.class.php 파일의 1357 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01357 { 01358 $oContext = &Context::getInstance(); 01359 return $oContext->_getBodyClass(); 01360 }

| Context::getBodyHeader | ( | ) |
BodyHeader return.
Context.class.php 파일의 1390 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01390 { 01391 $oContext = &Context::getInstance(); 01392 return $oContext->_getBodyHeader(); 01393 }

| Context::getBrowserTitle | ( | ) |
사이트 title return
Context.class.php 파일의 459 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : mobileXE::display(), rssView::rss(), trackbackController::sendTrackback().
00459 { 00460 $oContext = &Context::getInstance(); 00461 return htmlspecialchars($oContext->_getBrowserTitle()); 00462 }

| Context::getConfigFile | ( | ) |
db설정내용이 저장되어 있는 config file의 path를 return
Context.class.php 파일의 1435 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : _loadDBInfo(), isInstalled(), installController::makeConfigFile().
01435 { 01436 return _XE_PATH_."files/config/db.config.php"; 01437 }
| Context::getCSSFile | ( | ) |
CSS file 목록 return.
Context.class.php 파일의 1264 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01264 { 01265 $oContext = &Context::getInstance(); 01266 return $oContext->_getCSSFile(); 01267 }

| Context::getDBInfo | ( | ) |
DB 정보가 담긴 object를 return.
Context.class.php 파일의 283 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : DBSqlite3_pdo::_setDBInfo(), DBSqlite2::_setDBInfo(), DBPostgresql::_setDBInfo(), DBMysql_innodb::_setDBInfo(), DBMysql::_setDBInfo(), DBMssql::_setDBInfo(), DBFireBird::_setDBInfo(), DBCubrid::_setDBInfo(), editor::checkUpdate(), adminAdminView::dispAdminConfig(), adminAdminView::dispAdminIndex(), moduleModel::getDefaultMid(), getDefaultUrl(), Optimizer::getOptimizedFiles(), trackbackModel::getTrackbackKey(), ModuleHandler::init(), adminAdminView::init(), module::moduleInstall(), module::moduleUpdate(), editor::moduleUpdate(), document::moduleUpdate(), counter::moduleUpdate(), installAdminController::procInstallAdminSaveTimeZone().
00283 { 00284 $oContext = &Context::getInstance(); 00285 return $oContext->_getDBInfo(); 00286 }

| Context::getDBType | ( | ) |
DB의 db_type을 return.
Context.class.php 파일의 253 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : ModuleHandler::displayContent(), DB::getInstance(), memberModel::isValidPassword().
00253 { 00254 $oContext = &Context::getInstance(); 00255 return $oContext->_getDBType(); 00256 }

| Context::getDefaultUrl | ( | ) |
기본 URL을 return
Context.class.php 파일의 298 번째 라인에서 정의되었습니다.
다음을 참조함 : $db_info, getDBInfo().
다음에 의해서 참조됨 : moduleModel::getDefaultMid(), module::moduleInstall(), module::moduleUpdate(), contentItem::setDomain().
00298 { 00299 $db_info = Context::getDBInfo(); 00300 return $db_info->default_url; 00301 }

| Context::getFTPConfigFile | ( | ) |
ftp설정내용이 저장되어 있는 config file의 path를 return
Context.class.php 파일의 1442 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : _getFTPInfo(), isFTPRegisted(), installAdminController::procInstallAdminSaveFTPInfo(), installController::procInstallFTP().
01442 { 01443 return _XE_PATH_."files/config/ftp.config.php"; 01444 }
| Context::getFTPInfo | ( | ) |
FTP 정보가 담긴 object를 return.
Context.class.php 파일의 407 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : adminAdminView::dispAdminConfig(), FileHandler::makeDir().
00407 { 00408 $oContext = &Context::getInstance(); 00409 return $oContext->_getFTPInfo(); 00410 }

| Context::getHtmlFooter | ( | ) |
HtmlFooter return.
Context.class.php 파일의 1420 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01420 { 01421 $oContext = &Context::getInstance(); 01422 return $oContext->_getHtmlFooter(); 01423 }

| Context::getHtmlHeader | ( | ) |
HtmlHeader return.
Context.class.php 파일의 1327 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01327 { 01328 $oContext = &Context::getInstance(); 01329 return $oContext->_getHtmlHeader(); 01330 }

| & Context::getInstance | ( | ) |
유일한 Context 객체를 반환 (Singleton) Context는 어디서든 객체 선언없이 사용하기 위해서 static 하게 사용
Context.class.php 파일의 55 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : addBodyClass(), addBodyHeader(), addBrowserTitle(), addCSSFile(), addHtmlFooter(), addHtmlHeader(), addJsFile(), addSSLAction(), AllTests::AllTests(), close(), mobileXE::displayContent(), get(), getAll(), getBodyClass(), getBodyHeader(), getBrowserTitle(), documentItem::getContent(), getCSSFile(), getDBInfo(), getDBType(), getFTPInfo(), getHtmlFooter(), getHtmlHeader(), getJsFile(), getLangType(), getRequestMethod(), getRequestVars(), getResponseMethod(), gets(), getSSLActions(), getUrl(), isAllowRewrite(), isExistsSSLAction(), isUploaded(), loadDBInfo(), loadJavascriptPlugin(), loadLang(), set(), setBrowserTitle(), setDBInfo(), setLangType(), setRequestMethod(), setResponseMethod(), unloadAllCSSFiles(), unloadAllJsFiles(), unloadCSSFile(), unloadJsFile().
00055 { 00056 static $theInstance; 00057 if(!isset($theInstance)) $theInstance = new Context(); 00058 return $theInstance; 00059 }
| Context::getJsFile | ( | ) |
js file 목록을 return
Context.class.php 파일의 1190 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01190 { 01191 $oContext = &Context::getInstance(); 01192 return $oContext->_getJsFile(); 01193 }

| Context::getLang | ( | $ | code | ) |
code에 해당하는 문자열을 return
만약 code에 해당하는 문자열이 없다면 code를 그대로 리턴
Context.class.php 파일의 536 번째 라인에서 정의되었습니다.
다음을 참조함 : $GLOBALS.
다음에 의해서 참조됨 : memberController::addMemberMenu(), spamfilterModel::checkLimited(), documentAdminView::dispDocumentAdminList(), editorView::dispEditorPopup(), rssView::dispError(), mobileXE::display(), mobileXE::displayLangSelect(), mobileXE::displayNavigationContent(), moduleAdminView::dispModuleAdminModuleGrantSetup(), layoutModel::doActivateFaceOff(), memberController::doLogin(), commentModel::getCommentMenu(), editorModel::getComponentObject(), documentItem::getContent(), commentItem::getContent(), documentItem::getContentText(), commentItem::getContentText(), documentModel::getDocumentMenu(), memberModel::getMemberMenu(), moduleAdminModel::getModuleGrantHTML(), getTimeGap(), fileModel::getUploadStatus(), widgetController::getWidgetObject(), ModuleHandler::init(), commentController::insertComment(), memberController::insertMember(), trackbackController::insertTrackback(), spamfilterModel::isDeniedWord(), ModuleHandler::ModuleHandler(), member::moduleInstall(), pointLevelIconTrans(), wap::printBtn(), wap::printContent(), commentAdminController::procCommentAdminDeleteChecked(), documentAdminController::procDocumentAdminDeleteChecked(), editorController::procEditorCall(), fileAdminController::procFileAdminDeleteChecked(), importerAdminController::procImporterAdminImport(), memberController::procMemberFindAccount(), memberController::procMemberInsert(), memberController::procMemberResendAuthMail(), memberController::procMemberUpdateAuthMail(), menuAdminController::procMenuAdminUploadButton(), pointAdminController::procPointAdminApplyPoint(), pointAdminController::procPointAdminReCal(), pollAdminController::procPollAdminDeleteChecked(), rssAdminController::procRssAdminInsertConfig(), sessionAdminController::procSessionAdminClear(), smartphoneXE::procSmartPhone(), pageSPhone::procSmartPhone(), trackbackAdminController::procTrackbackAdminDeleteChecked(), pageWap::procWAP(), widgetController::procWidgetGenerateCode(), widgetController::procWidgetGenerateCodeInPage(), mobileXE::setChilds(), mobileXE::setContent(), Object::setMessage(), mobileXE::setModuleInstance(), pointController::triggerUpdateReadedCount(), zdate().
| Context::getLangType | ( | ) |
lang_type을 return
Context.class.php 파일의 519 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : XmlJsFilter::_getCompiledFileName(), moduleController::_replaceLangCode(), adminAdminView::dispAdminIndex(), mobileXE::displayLangSelect(), pageView::dispPageIndex(), widgetController::getCache(), editorModel::getCacheFile(), editorModel::getComponentXmlInfo(), moduleAdminModel::getLangCode(), layoutModel::getLayoutInfo(), menuAdminModel::getMenuItemInfo(), moduleModel::getModuleActionXml(), widgetModel::getWidgetInfo(), widgetModel::getWidgetStyleInfo(), importerAdminController::importExtraVars(), documentController::insertDocument(), documentController::insertDocumentExtraVar(), moduleController::insertSite(), module::moduleUpdate(), XmlParser::parse(), wap::printBtn(), installController::procInstall(), pageAdminController::procPageAdminRemoveWidgetCache(), rssView::rss(), documentModel::setToAllDocumentExtraVars(), documentController::updateDocument(), layoutAdminController::updateLayout(), zdate().
00519 { 00520 $oContext = &Context::getInstance(); 00521 return $oContext->_getLangType(); 00522 }

| Context::getRequestMethod | ( | ) |
Request Method값을 return (GET/POST/XMLRPC/JSON);.
Context.class.php 파일의 751 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : checkSSO(), ModuleHandler::displayContent(), DisplayHandler::printContent(), memberController::procMemberOpenIDLogin().
00751 { 00752 $oContext = &Context::getInstance(); 00753 return $oContext->_getRequestMethod(); 00754 }

| Context::getRequestUri | ( | $ | ssl_mode = FOLLOW_REQUEST_SSL, |
|
| $ | domain = null | |||
| ) |
요청이 들어온 URL에서 argument를 제거하여 return
Context.class.php 파일의 922 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : TemplateHandler::_compileImgPath(), integration_searchModel::_getFiles(), Optimizer::_replaceCssPath(), checkSSO(), ModuleHandler::displayContent(), layoutAdminView::dispLayoutAdminLayoutModify(), messageView::dispMessage(), documentItem::getContent(), moduleModel::getDefaultMid(), getFullSiteUrl(), getFullUrl(), memberModel::getImageMark(), memberModel::getImageName(), getNotEncodedFullUrl(), getNotEncodedSiteUrl(), getNotEncodedUrl(), Optimizer::getOptimizedFiles(), commentItem::getPermanentUrl(), memberModel::getProfileImage(), getRequestUrl(), getSiteUrl(), documentItem::getThumbnail(), commentItem::getThumbnail(), getUrl(), init(), memberTransImageName(), pointLevelIconTrans(), DisplayHandler::printContent(), login_info::proc(), communicationController::procCommunicationSendMessage(), installController::procInstall(), memberController::procMemberOpenIDLogin(), Mail::replaceResourceRealPath(), documentItem::replaceResourceRealPath(), rssView::rss(), multimedia_link::transHTML(), image_link::transHTML(), rssController::triggerRssUrlInsert().
00922 { 00923 static $url = array(); 00924 00925 // HTTP Request가 아니면 패스 00926 if(!isset($_SERVER['SERVER_PROTOCOL'])) return ; 00927 if(Context::get('_use_ssl') == "always") $ssl_mode = ENFORCE_SSL; 00928 00929 if($domain) $domain_key = md5($domain); 00930 else $domain_key = 'default'; 00931 00932 if(isset($url[$ssl_mode][$domain_key])) return $url[$ssl_mode][$domain_key]; 00933 00934 $current_use_ssl = $_SERVER['HTTPS']=='on' ? true : false; 00935 00936 switch($ssl_mode) { 00937 case FOLLOW_REQUEST_SSL : 00938 if($current_use_ssl) $use_ssl = true; 00939 else $use_ssl = false; 00940 break; 00941 case ENFORCE_SSL : 00942 $use_ssl = true; 00943 break; 00944 case RELEASE_SSL : 00945 $use_ssl = false; 00946 break; 00947 } 00948 00949 if($domain) { 00950 $target_url = trim($domain); 00951 if(substr($target_url,-1) != '/') $target_url.= '/'; 00952 } else { 00953 $target_url= $_SERVER['HTTP_HOST'].getScriptPath(); 00954 } 00955 00956 $url_info = parse_url('http://'.$target_url); 00957 00958 if($current_use_ssl != $use_ssl) 00959 { 00960 unset($url_info['port']); 00961 } 00962 00963 if($use_ssl) { 00964 if(Context::get("_https_port") && Context::get("_https_port") != 443) { 00965 $url_info['port'] = Context::get("_https_port"); 00966 } 00967 elseif($url_info['port']==443) 00968 { 00969 unset($url_info['port']); 00970 } 00971 } else { 00972 if(Context::get("_http_port") && Context::get("_http_port") != 80) { 00973 $url_info['port'] = Context::get("_http_port"); 00974 } 00975 elseif($url_info['port']==80) 00976 { 00977 unset($url_info['port']); 00978 } 00979 } 00980 00981 $url[$ssl_mode][$domain_key] = sprintf("%s://%s%s%s",$use_ssl?'https':$url_info['scheme'], $url_info['host'], $url_info['port']&&$url_info['port']!=80?':'.$url_info['port']:'',$url_info['path']); 00982 00983 return $url[$ssl_mode][$domain_key]; 00984 }

| Context::getRequestUrl | ( | ) |
현재 요청된 full url을 return
Context.class.php 파일의 766 번째 라인에서 정의되었습니다.
다음을 참조함 : getRequestUri(), null.
다음에 의해서 참조됨 : checkSSO().
00766 { 00767 static $url = null; 00768 if(is_null($url)) { 00769 $url = Context::getRequestUri(); 00770 if(count($_GET)) { 00771 foreach($_GET as $key => $val) $vars[] = $key.'='.$val; 00772 $url .= '?'.implode('&',$vars); 00773 } 00774 } 00775 return $url; 00776 }

| Context::getRequestVars | ( | ) |
GET/POST/XMLRPC에서 넘어온 변수값을 return.
Context.class.php 파일의 1062 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : addonAdminController::procAddonAdminSetupAddon(), addonController::procAddonSetupAddonAddMid(), addonController::procAddonSetupAddonDelMid(), editorAdminController::procEditorAdminSetupComponent(), pollController::procInsert(), integration_searchAdminController::procIntegration_searchAdminInsertSkin(), layoutAdminController::procLayoutAdminUpdate(), memberAdminController::procMemberAdminInsert(), memberController::procMemberInsert(), memberController::procMemberModifyInfo(), memberController::procMemberSaveDocument(), menuAdminController::procMenuAdminInsertItem(), moduleAdminController::procModuleAdminModuleSetup(), moduleAdminController::procModuleAdminUpdateSkinInfo(), opageAdminController::procOpageAdminInsert(), pageAdminController::procPageAdminInsert(), pointAdminController::procPointAdminInsertConfig(), pointAdminController::procPointAdminInsertModuleConfig(), rssAdminController::procRssAdminInsertConfig(), rssAdminController::procRssAdminInsertModuleConfig(), widgetController::procWidgetGenerateCode(), widgetController::procWidgetGenerateCodeInPage(), widgetController::procWidgetStyleExtraImageUpload().
01062 { 01063 $oContext = &Context::getInstance(); 01064 return $oContext->_getRequestVars(); 01065 }

| Context::getResponseMethod | ( | ) |
response method 값을 return
method의 종류에는 HTML/ TEXT/ XMLRPC가 있음 별도로 response method를 지정하지 않았다면 request method로 판단하여 결과 return
Context.class.php 파일의 611 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : DisplayHandler::_debugOutput(), DisplayHandler::printContent(), multimedia_link::transHTML(), image_gallery::transHTML(), editorController::triggerEditorComponentCompile(), widgetController::triggerWidgetCompile().
00611 { 00612 $oContext = &Context::getInstance(); 00613 return $oContext->_getResponseMethod(); 00614 }

| Context::gets | ( | ) |
받고자 하는 변수만 object에 입력하여 받음
key1, key2, key3 .. 등의 인자를 주어 여러개의 변수를 object vars로 세팅하여 받을 수 있음
Context.class.php 파일의 1022 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : layoutAdminController::procLayoutAdminUserValueInsert().
01022 { 01023 $num_args = func_num_args(); 01024 if($num_args<1) return; 01025 $args_list = func_get_args(); 01026 01027 $oContext = &Context::getInstance(); 01028 return $oContext->_gets($num_args, $args_list); 01029 }

| Context::getSSLActions | ( | ) |
Context.class.php 파일의 1088 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01088 { 01089 $oContext = &Context::getInstance(); 01090 return $oContext->_getSSLActions(); 01091 }

| Context::getUrl | ( | $ | num_args = 0, |
|
| $ | args_list = array(), |
|||
| $ | domain = null, |
|||
| $ | encode = true | |||
| ) |
요청받은 url에 args_list를 적용하여 return
Context.class.php 파일의 781 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : getFullSiteUrl(), getFullUrl(), getNotEncodedFullUrl(), getNotEncodedSiteUrl(), getNotEncodedUrl(), getSiteUrl(), getUrl(), init().
00781 { 00782 $oContext = &Context::getInstance(); 00783 return $oContext->_getUrl($num_args, $args_list, $domain, $encode); 00784 }

| Context::init | ( | ) |
DB정보, Request Argument등을 세팅 Context::init()은 단 한번만 호출되어야 하며 init()시에 Request Argument, DB/언어/세션정보등의 모든 정보를 세팅한다.
Context.class.php 파일의 65 번째 라인에서 정의되었습니다.
다음을 참조함 : $GLOBALS, _loadDBInfo(), _loadLang(), _set(), _setJSONRequestArgument(), _setRequestArgument(), _setRequestMethod(), _setUploadedArgument(), _setXmlRpcArgument(), addCSSFile(), addJsFile(), elseif, get(), getController(), getModel(), getRequestUri(), getUrl(), isInstalled(), isSiteID(), loadLang(), loadLangSelected(), set(), setLangType().
00065 { 00066 // context 변수를 $GLOBALS의 변수로 지정 00067 $this->context = &$GLOBALS['__Context__']; 00068 $this->context->lang = &$GLOBALS['lang']; 00069 $this->context->_COOKIE = $_COOKIE; 00070 00071 // Request Method 설정 00072 $this->_setRequestMethod(); 00073 00074 // Request Argument 설정 00075 $this->_setXmlRpcArgument(); 00076 $this->_setJSONRequestArgument(); 00077 $this->_setRequestArgument(); 00078 $this->_setUploadedArgument(); 00079 00080 // 기본적인 DB정보 세팅 00081 $this->_loadDBInfo(); 00082 00083 // 설치가 되어 있다면 가상 사이트 정보를 구함 00084 if(Context::isInstalled()) { 00085 // site_module_info를 구함 00086 $oModuleModel = &getModel('module'); 00087 $site_module_info = $oModuleModel->getDefaultMid(); 00088 // site_module_info의 site_srl = 0 일 경우 db_config의 default_url과 비교 00089 if($site_module_info->site_srl == 0 && $site_module_info->domain != $this->db_info->default_url) { 00090 $site_module_info->domain = $this->db_info->default_url; 00091 } 00092 00093 Context::set('site_module_info', $site_module_info); 00094 00095 if($site_module_info->site_srl && isSiteID($site_module_info->vid)) Context::set('vid', $site_module_info->vid); 00096 $this->db_info->lang_type = $site_module_info->default_language; 00097 if(!$this->db_info->lang_type) $this->db_info->lang_type = 'en'; 00098 } 00099 00100 // 언어 파일 불러오기 00101 $lang_supported = $this->loadLangSelected(); 00102 00103 // 사용자의 쿠키 설정된 언어 타입 추출 00104 if($_COOKIE['lang_type']) $this->lang_type = $_COOKIE['lang_type']; 00105 00106 // 사용자 설정 언어 타입이 없으면 기본 언어타입으로 지정 00107 if(!$this->lang_type) $this->lang_type = $this->db_info->lang_type; 00108 00109 // 관리자 설정 언어값에 등록된 것이 아니라면 기본 언어로 변경 00110 if(!$this->lang_type) $this->lang_type = "en"; 00111 if(is_array($lang_supported)&&!isset($lang_supported[$this->lang_type])) $this->lang_type = 'en'; 00112 00113 Context::set('lang_supported', $lang_supported); 00114 $this->setLangType($this->lang_type); 00115 00116 // module의 언어파일 강제 로드 (언어 type에 맞춰서) 00117 $this->loadLang(_XE_PATH_.'modules/module/lang'); 00118 00119 // 세션 핸들러 지정 00120 if($this->db_info->use_db_session != 'N') { 00121 $oSessionModel = &getModel('session'); 00122 $oSessionController = &getController('session'); 00123 session_set_save_handler( 00124 array(&$oSessionController,"open"), 00125 array(&$oSessionController,"close"), 00126 array(&$oSessionModel,"read"), 00127 array(&$oSessionController,"write"), 00128 array(&$oSessionController,"destroy"), 00129 array(&$oSessionController,"gc") 00130 ); 00131 } 00132 session_start(); 00133 00134 00135 // 인증 관련 정보를 Context와 세션에 설정 00136 if(Context::isInstalled()) { 00137 // 인증관련 데이터를 Context에 설정 00138 $oMemberModel = &getModel('member'); 00139 $oMemberController = &getController('member'); 00140 00141 // 인증이 되어 있을 경우 유효성 체크 00142 if($oMemberModel->isLogged()) { 00143 $oMemberController->setSessionInfo(); 00144 00145 // 인증이 되어 있지 않을 경우 자동 로그인 확인 00146 } elseif($_COOKIE['xeak']) { 00147 $oMemberController->doAutologin(); 00148 } 00149 00150 $this->_set('is_logged', $oMemberModel->isLogged() ); 00151 $this->_set('logged_info', $oMemberModel->getLoggedInfo() ); 00152 } 00153 00154 // 기본 언어파일 로드 00155 $this->lang = &$GLOBALS['lang']; 00156 $this->_loadLang(_XE_PATH_."common/lang/"); 00157 00158 // rewrite 모듈사용 상태 체크 00159 if(file_exists(_XE_PATH_.'.htaccess')&&$this->db_info->use_rewrite == 'Y') $this->allow_rewrite = true; 00160 else $this->allow_rewrite = false; 00161 00162 // 기본 JS/CSS 등록 00163 $this->addJsFile("./common/js/jquery.js"); 00164 $this->addJsFile("./common/js/x.js"); 00165 $this->addJsFile("./common/js/common.js"); 00166 $this->addJsFile("./common/js/js_app.js"); 00167 $this->addJsFile("./common/js/xml_handler.js"); 00168 $this->addJsFile("./common/js/xml_js_filter.js"); 00169 $this->addCSSFile("./common/css/default.css"); 00170 $this->addCSSFile("./common/css/button.css"); 00171 00172 // 관리자 페이지일 경우 관리자 공용 CSS 추가 00173 if(Context::get('module')=='admin' || strpos(Context::get('act'),'Admin')>0) $this->addCssFile("./modules/admin/tpl/css/admin.css", false); 00174 00175 // rewrite module때문에 javascript에서 location.href 문제 해결을 위해 직접 실제 경로 설정 00176 if($_SERVER['REQUEST_METHOD'] == 'GET') { 00177 if($this->get_vars) { 00178 foreach($this->get_vars as $key => $val) { 00179 if(!$val) continue; 00180 if(is_array($val)&&count($val)) { 00181 foreach($val as $k => $v) { 00182 $url .= ($url?'&':'').$key.'['.$k.']='.urlencode($v); 00183 } 00184 } else { 00185 $url .= ($url?'&':'').$key.'='.urlencode($val); 00186 } 00187 } 00188 Context::set('current_url',sprintf('%s?%s', $this->getRequestUri(), $url)); 00189 } else { 00190 Context::set('current_url',$this->getUrl()); 00191 } 00192 } else { 00193 Context::set('current_url',$this->getRequestUri()); 00194 } 00195 Context::set('request_uri',Context::getRequestUri()); 00196 }

| Context::isAllowRewrite | ( | ) |
rewrite mod 사용에 대한 변수 return
Context.class.php 파일의 1465 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : DisplayHandler::printContent(), rssController::triggerRssUrlInsert().
01465 { 01466 $oContext = &Context::getInstance(); 01467 return $oContext->allow_rewrite; 01468 }

| Context::isExistsSSLAction | ( | $ | action | ) |
Context.class.php 파일의 1097 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01097 { 01098 $oContext = &Context::getInstance(); 01099 return $oContext->_isExistsSSLAction($action); 01100 }

| Context::isFTPRegisted | ( | ) |
FTP 정보가 등록되었는지 확인
Context.class.php 파일의 398 번째 라인에서 정의되었습니다.
다음을 참조함 : getFTPConfigFile().
다음에 의해서 참조됨 : _getFTPInfo(), installView::dispInstallSelectDB(), FileHandler::makeDir().
00398 { 00399 $ftp_config_file = Context::getFTPConfigFile(); 00400 if(file_exists($ftp_config_file)) return true; 00401 return false; 00402 }

| Context::isInstalled | ( | ) |
설치가 되어 있는지에 대한 체크
단순히 db config 파일의 존재 유무로 설치 여부를 체크한다
Context.class.php 파일의 1451 번째 라인에서 정의되었습니다.
다음을 참조함 : getConfigFile().
다음에 의해서 참조됨 : _loadDBInfo(), checkSSO(), DB::getInstance(), installView::init(), installController::init(), init(), member::member(), ModuleHandler::ModuleHandler(), installController::procInstall(), installController::procInstallFTP(), session::session(), ModuleHandler::triggerCall(), rssController::triggerRssUrlInsert().
01451 { 01452 return file_exists(Context::getConfigFile()) && filesize(Context::getConfigFile()); 01453 }

| Context::isUploaded | ( | ) |
업로드 되었을 경우 return true
Context.class.php 파일의 720 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : layoutAdminController::procLayoutAdminUserImageUpload(), layoutAdminController::procLayoutAdminUserLayoutImport(), moduleController::procModuleFileBoxAdd().
00720 { 00721 $oContext = &Context::getInstance(); 00722 return $oContext->_isUploaded(); 00723 }

| Context::loadDBInfo | ( | ) |
DB의 및 기타 정보 load.
Context.class.php 파일의 213 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
00213 { 00214 $oContext = &Context::getInstance(); 00215 return $oContext->_loadDBInfo(); 00216 }

| Context::loadJavascriptPlugin | ( | $ | plugin_name | ) |
javascript plugin load
Context.class.php 파일의 1281 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : documentModel::getCategoryHTML(), ExtraItem::getFormHTML().
01281 { 01282 $oContext = &Context::getInstance(); 01283 return $oContext->_loadJavascriptPlugin($plugin_name); 01284 }

| Context::loadLang | ( | $ | path | ) |
지정된 언어파일 로드
Context.class.php 파일의 476 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, $path, getInstance().
다음에 의해서 참조됨 : editorModel::getEditor(), mobileXE::getInstance(), ModuleHandler::getModuleInstance(), init().
00476 { 00477 $oContext = &Context::getInstance(); 00478 $oContext->_loadLang($path); 00479 }

| Context::loadLangSelected | ( | ) |
설정한 언어 파일 찾기
Context.class.php 파일의 322 번째 라인에서 정의되었습니다.
다음을 참조함 : FileHandler::copyFile(), loadLangSupported(), null, FileHandler::readFile(), FileHandler::removeFile(), FileHandler::writeFile().
다음에 의해서 참조됨 : adminAdminView::dispAdminConfig(), init().
00322 { 00323 static $lang_selected = null; 00324 if(is_null($lang_selected)) { 00325 $orig_lang_file = _XE_PATH_.'common/lang/lang.info'; 00326 $selected_lang_file = _XE_PATH_.'files/config/lang_selected.info'; 00327 if(!file_exists($selected_lang_file) || !filesize($selected_lang_file)) { 00328 $old_selected_lang_file = _XE_PATH_.'files/cache/lang_selected.info'; 00329 if(file_exists($old_selected_lang_file)) { 00330 FileHandler::copyFile($old_selected_lang_file, $selected_lang_file); 00331 FileHandler::removeFile($old_selected_lang_file); 00332 } 00333 } 00334 00335 if(!file_exists($selected_lang_file) || !filesize($selected_lang_file)) { 00336 $buff = FileHandler::readFile($orig_lang_file); 00337 FileHandler::writeFile($selected_lang_file, $buff); 00338 $lang_selected = Context::loadLangSupported(); 00339 } else { 00340 $langs = file($selected_lang_file); 00341 foreach($langs as $val) { 00342 list($lang_prefix, $lang_text) = explode(',',$val); 00343 $lang_text = trim($lang_text); 00344 $lang_selected[$lang_prefix] = $lang_text; 00345 } 00346 } 00347 } 00348 return $lang_selected; 00349 }

| Context::loadLangSupported | ( | ) |
지원되는 언어 파일 찾기
Context.class.php 파일의 306 번째 라인에서 정의되었습니다.
다음을 참조함 : null.
다음에 의해서 참조됨 : adminAdminView::dispAdminConfig(), loadLangSelected(), installAdminController::procInstallAdminSaveLangSelected().
00306 { 00307 static $lang_supported = null; 00308 if(is_null($lang_supported)) { 00309 $langs = file(_XE_PATH_.'common/lang/lang.info'); 00310 foreach($langs as $val) { 00311 list($lang_prefix, $lang_text) = explode(',',$val); 00312 $lang_text = trim($lang_text); 00313 $lang_supported[$lang_prefix] = $lang_text; 00314 } 00315 } 00316 return $lang_supported; 00317 }
| Context::set | ( | $ | key, | |
| $ | val, | |||
| $ | set_to_get_vars = false | |||
| ) |
key/val로 context vars 세팅
Context.class.php 파일의 989 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : content::_compile(), commentController::addCommentPopupMenu(), memberController::addMemberMenu(), memberController::addMemberPopupMenu(), rssView::atom(), installController::checkInstallEnv(), addonAdminView::dispAddonAdminIndex(), addonAdminView::dispAddonAdminInfo(), addonAdminView::dispAddonAdminSetup(), adminAdminView::dispAdminConfig(), adminAdminView::dispAdminIndex(), commentAdminView::dispCommentAdminDeclared(), commentAdminView::dispCommentAdminList(), communicationView::dispCommunicationAddFriend(), communicationView::dispCommunicationAddFriendGroup(), communicationAdminView::dispCommunicationAdminConfig(), communicationView::dispCommunicationFriend(), communicationView::dispCommunicationMessages(), communicationView::dispCommunicationNewMessage(), communicationView::dispCommunicationSendMessage(), counterAdminView::dispCounterAdminIndex(), documentAdminView::dispDocumentAdminAlias(), documentAdminView::dispDocumentAdminConfig(), documentAdminView::dispDocumentAdminDeclared(), documentAdminView::dispDocumentAdminList(), documentAdminView::dispDocumentAdminTrashList(), documentView::dispDocumentManageDocument(), documentView::dispDocumentPreview(), documentView::dispDocumentPrint(), editorAdminView::dispEditorAdminIndex(), editorAdminView::dispEditorAdminSetupComponent(), editorView::dispEditorComponentInfo(), editorView::dispEditorPopup(), editorView::dispEditorSkinColorset(), fileAdminView::dispFileAdminConfig(), importerAdminView::dispImporterAdminContent(), installView::dispInstallForm(), integration_searchAdminView::dispIntegration_searchAdminContent(), krzipAdminView::dispKrzipAdminConfig(), ModuleHandler::displayContent(), mobileXE::displayContent(), layoutAdminView::dispLayoutAdminContent(), layoutAdminView::dispLayoutAdminDownloadedList(), layoutAdminView::dispLayoutAdminEdit(), layoutAdminView::dispLayoutAdminInfo(), layoutAdminView::dispLayoutAdminInsert(), layoutAdminView::dispLayoutAdminLayoutImageList(), layoutAdminView::dispLayoutAdminLayoutModify(), layoutAdminView::dispLayoutAdminModify(), layoutView::dispLayoutInfo(), memberAdminView::dispMemberAdminConfig(), memberAdminView::dispMemberAdminDeleteMembers(), memberAdminView::dispMemberAdminDeniedIDList(), memberAdminView::dispMemberAdminGroupList(), memberAdminView::dispMemberAdminInfo(), memberAdminView::dispMemberAdminInsert(), memberAdminView::dispMemberAdminInsertJoinForm(), memberAdminView::dispMemberAdminJoinFormList(), memberAdminView::dispMemberAdminList(), memberAdminView::dispMemberAdminManageGroup(), memberView::dispMemberInfo(), memberView::dispMemberLeave(), memberView::dispMemberLoginForm(), memberView::dispMemberLogout(), memberView::dispMemberModifyInfo(), memberView::dispMemberModifyPassword(), memberView::dispMemberOpenIDLeave(), memberView::dispMemberOwnDocument(), memberView::dispMemberSavedDocument(), memberView::dispMemberScrappedDocument(), memberView::dispMemberSignUpForm(), menuAdminView::dispMenuAdminContent(), menuAdminView::dispMenuAdminInsert(), menuAdminView::dispMenuAdminManagement(), menuAdminView::dispMenuAdminMidList(), messageView::dispMessage(), messageAdminView::dispMessageAdminConfig(), moduleAdminView::dispModuleAdminCategory(), moduleAdminView::dispModuleAdminCopyModule(), moduleAdminView::dispModuleAdminInfo(), moduleAdminView::dispModuleAdminLangcode(), moduleAdminView::dispModuleAdminList(), moduleAdminView::dispModuleAdminModuleAdditionSetup(), moduleAdminView::dispModuleAdminModuleSetup(), moduleView::dispModuleFileBox(), moduleView::dispModuleFileBoxAdd(), moduleView::dispModuleSelectList(), moduleView::dispModuleSkinInfo(), opageAdminView::dispOpageAdminContent(), opageAdminView::dispOpageAdminDelete(), opageAdminView::dispOpageAdminGrantInfo(), opageAdminView::dispOpageAdminInsert(), opageView::dispOpageIndex(), pageAdminView::dispPageAdminContent(), pageAdminView::dispPageAdminContentModify(), pageAdminView::dispPageAdminDelete(), pageAdminView::dispPageAdminGrantInfo(), pageAdminView::dispPageAdminInfo(), pageAdminView::dispPageAdminInsert(), pageAdminView::dispPageAdminPageAdditionSetup(), pageView::dispPageIndex(), pointAdminView::dispPointAdminConfig(), pointAdminView::dispPointAdminModuleConfig(), pointAdminView::dispPointAdminPointList(), pollAdminView::dispPollAdminConfig(), pollAdminView::dispPollAdminList(), pollAdminView::dispPollAdminResult(), rssAdminView::dispRssAdminIndex(), memberView::dispSavedDocumentList(), spamfilterAdminView::dispSpamfilterAdminConfig(), spamfilterAdminView::dispSpamfilterAdminDeniedIPList(), spamfilterAdminView::dispSpamfilterAdminDeniedWordList(), trackbackAdminView::dispTrackbackAdminList(), trackbackView::dispTrackbackSend(), widgetAdminView::dispWidgetAdminAddContent(), widgetAdminView::dispWidgetAdminDownloadedList(), widgetView::dispWidgetGenerateCode(), widgetView::dispWidgetGenerateCodeInPage(), widgetView::dispWidgetInfo(), widgetView::dispWidgetSkinInfo(), widgetView::dispWidgetStyleGenerateCodeInPage(), mobileXE::getBrowserType(), documentModel::getCategoryHTML(), documentItem::getComments(), communicationAdminModel::getCommunicationAdminColorset(), moduleModel::getDefaultMid(), documentModel::getDocumentCategoryTplInfo(), editorModel::getEditor(), documentModel::getExtraVarsHTML(), memberAdminModel::getMemberAdminColorset(), menuAdminModel::getMenuAdminTplInfo(), moduleAdminModel::getModuleSkinHTML(), pollModel::getPollHtml(), pollModel::getPollResultHtml(), poll_maker::getPopupContent(), multimedia_link::getPopupContent(), image_link::getPopupContent(), image_gallery::getPopupContent(), emoticon::getPopupContent(), pointAdminView::init(), pageAdminView::init(), opageAdminView::init(), ModuleHandler::init(), memberView::init(), memberAdminView::init(), integration_searchAdminView::init(), init(), communicationView::init(), adminAdminView::init(), memberController::insertMember(), integration_searchView::IS(), DisplayHandler::printContent(), login_info::proc(), counter_status::proc(), fileController::procFileIframeUpload(), installController::procInstall(), memberController::procMemberAuthAccount(), memberController::procMemberFindAccount(), memberController::procMemberLogout(), memberController::procMemberResendAuthMail(), memberController::procMemberUpdateAuthMail(), menuAdminController::procMenuAdminUploadButton(), moduleController::procModuleFileBoxAdd(), rssAdminController::procRssAdminInsertConfig(), pageSPhone::procSmartPhone(), rssView::rss(), EditorHandler::setInfo(), memberController::setSessionInfo(), image_gallery::transHTML(), commentView::triggerDispCommentAdditionSetup(), documentView::triggerDispDocumentAdditionSetup(), editorView::triggerDispEditorAdditionSetup(), fileView::triggerDispFileAdditionSetup(), pointView::triggerDispPointAdditionSetup(), rssView::triggerDispRssAdditionSetup(), trackbackView::triggerDispTrackbackAdditionSetup(), rssController::triggerRssUrlInsert().
00989 { 00990 $oContext = &Context::getInstance(); 00991 $oContext->_set($key, $val, $set_to_get_vars); 00992 }

| Context::setBrowserTitle | ( | $ | site_title | ) |
사이트 title setting
Context.class.php 파일의 443 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, $site_title, getInstance().
다음에 의해서 참조됨 : documentView::dispDocumentPrint(), opageView::getHtmlPage(), ModuleHandler::init(), adminAdminView::init(), trackbackController::procTrackbackSend().
00443 { 00444 if(!$site_title) return; 00445 $oContext = &Context::getInstance(); 00446 $oContext->_setBrowserTitle($site_title); 00447 }

| Context::setDBInfo | ( | $ | db_info | ) |
DB 정보가 담긴 object를 return.
Context.class.php 파일의 268 번째 라인에서 정의되었습니다.
다음을 참조함 : $db_info, $oContext, getInstance().
다음에 의해서 참조됨 : installController::procInstall(), installAdminController::procInstallAdminSaveTimeZone().
00268 { 00269 $oContext = &Context::getInstance(); 00270 $oContext->_setDBInfo($db_info); 00271 }

| Context::setLang | ( | $ | code, | |
| $ | val | |||
| ) |
직접 lang 변수에 데이터를 추가
Context.class.php 파일의 545 번째 라인에서 정의되었습니다.
다음을 참조함 : $GLOBALS.
00545 { 00546 $GLOBALS['lang']->{$code} = $val; 00547 }
| Context::setLangType | ( | $ | lang_type = 'ko' |
) |
lang_type을 세팅 (기본 ko)
Context.class.php 파일의 502 번째 라인에서 정의되었습니다.
다음을 참조함 : $lang_type, $oContext, getInstance().
다음에 의해서 참조됨 : init().
00502 { 00503 $oContext = &Context::getInstance(); 00504 $oContext->_setLangType($lang_type); 00505 $_SESSION['lang_type'] = $lang_type; 00506 }

| Context::setRequestMethod | ( | $ | type | ) |
request method가 어떤것인지 판단하여 저장 (GET/POST/XMLRPC/JSON)
Context.class.php 파일의 628 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : trackbackController::trackback().
00628 { 00629 $oContext = &Context::getInstance(); 00630 $oContext->_setRequestMethod($type); 00631 }

| Context::setResponseMethod | ( | $ | method = "HTML" |
) |
response method를 강제로 지정 (기본으로는 request method를 이용함)
method의 종류에는 HTML/ TEXT/ XMLRPC/ JSON가 있음
Context.class.php 파일의 596 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
다음에 의해서 참조됨 : rssView::rss().
00596 { 00597 $oContext = &Context::getInstance(); 00598 return $oContext->_setResponseMethod($method); 00599 }

| Context::transContent | ( | $ | content | ) |
내용의 위젯이나 기타 기능에 대한 code를 실제 code로 변경
Context.class.php 파일의 1458 번째 라인에서 정의되었습니다.
| Context::unloadAllCSSFiles | ( | ) |
모든 CSS File을 제거
Context.class.php 파일의 1252 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01252 { 01253 $oContext = &Context::getInstance(); 01254 return $oContext->_unloadAllCSSFiles(); 01255 }

| Context::unloadAllJsFiles | ( | ) |
모든 JS File을 제거
Context.class.php 파일의 1152 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01152 { 01153 $oContext = &Context::getInstance(); 01154 return $oContext->_unloadAllJsFiles(); 01155 }

| Context::unloadCSSFile | ( | $ | file, | |
| $ | optimized = true, |
|||
| $ | media = 'all', |
|||
| $ | targetie = '' | |||
| ) |
css file을 제거
Context.class.php 파일의 1232 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01232 { 01233 $oContext = &Context::getInstance(); 01234 return $oContext->_unloadCSSFile($file, $optimized, $media, $targetie); 01235 }

| Context::unloadJsFile | ( | $ | file, | |
| $ | optimized = true, |
|||
| $ | targetie = '' | |||
| ) |
js file을 제거
Context.class.php 파일의 1132 번째 라인에서 정의되었습니다.
다음을 참조함 : $oContext, getInstance().
01132 { 01133 $oContext = &Context::getInstance(); 01134 return $oContext->_unloadJsFile($file, $optimized, $targetie); 01135 }

| Context::$allow_rewrite = false |
rewrite mod 사용에 대한 변수
Context.class.php 파일의 16 번째 라인에서 정의되었습니다.
| Context::$body_class = array() |
display시에 사용하게 되는 <body> 안에 출력될 class
Context.class.php 파일의 31 번째 라인에서 정의되었습니다.
| Context::$body_header = NULL |
display시에 사용하게 되는 <body> 바로 다음에 출력될 스크립트 코드
Context.class.php 파일의 32 번째 라인에서 정의되었습니다.
| Context::$context = NULL |
request parameter 및 각종 환경 변수등을 정리하여 담을 변수
Context.class.php 파일의 21 번째 라인에서 정의되었습니다.
| Context::$css_files = array() |
display시에 사용하게 되는 css files의 목록
Context.class.php 파일의 28 번째 라인에서 정의되었습니다.
| Context::$db_info = NULL |
DB 정보.
Context.class.php 파일의 23 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : _loadDBInfo(), _setDBInfo(), getDefaultUrl(), setDBInfo().
| Context::$ftp_info = NULL |
| Context::$get_vars = NULL |
form이나 get으로 요청이 들어온 변수만 별도로 관리
Context.class.php 파일의 47 번째 라인에서 정의되었습니다.
| Context::$html_footer = NULL |
display시에 사용하게 되는 </body> 바로 앞에 추가될 코드
Context.class.php 파일의 33 번째 라인에서 정의되었습니다.
| Context::$html_header = NULL |
display시에 사용하게 되는 <head>..</head>내의 스크립트코드
Context.class.php 파일의 30 번째 라인에서 정의되었습니다.
| Context::$is_uploaded = false |
첨부파일이 업로드 된 요청이였는지에 대한 체크 플래그
Context.class.php 파일의 49 번째 라인에서 정의되었습니다.
| Context::$js_files = array() |
display시에 사용하게 되는 js files의 목록
Context.class.php 파일의 27 번째 라인에서 정의되었습니다.
| Context::$lang = NULL |
| Context::$lang_type = '' |
언어 정보 기본으로 ko. HTTP_USER_AGENT나 사용자의 직접 세팅(쿠키이용)등을 통해 변경됨
언어 종류
Context.class.php 파일의 41 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : _setLangType(), setLangType().
| Context::$loaded_lang_files = array() |
로딩된 언어파일의 목록 (재로딩을 피하기 위함)
Context.class.php 파일의 43 번째 라인에서 정의되었습니다.
| Context::$path = '' |
| Context::$request_method = 'GET' |
GET/POST/XMLRPC 중 어떤 방식으로 요청이 왔는지에 대한 값이 세팅. GET/POST/XML 3가지가 있음.
Context.class.php 파일의 18 번째 라인에서 정의되었습니다.
| Context::$response_method = '' |
HTML/XMLRPC 중 어떤 방식으로 결과를 출력할지 결정. (강제 지정전까지는 request_method를 따름).
Context.class.php 파일의 19 번째 라인에서 정의되었습니다.
| Context::$site_title = '' |
현 사이트의 browser title. Context::setBrowserTitle() 로 변경 가능
Context.class.php 파일의 45 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : _addBrowserTitle(), _setBrowserTitle(), addBrowserTitle(), setBrowserTitle().
| Context::$ssl_actions = array() |
ssl로 전송해야 할 action등록 (common/js/xml_handler.js에서 ajax통신시 활용)
Context.class.php 파일의 26 번째 라인에서 정의되었습니다.
1.6.1