english comments added

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mosmartin 2011-04-06 16:48:06 +00:00
parent 693e215bc1
commit 4d272994dd
219 changed files with 6407 additions and 8705 deletions

View file

@ -2,28 +2,27 @@
/**
* @class krzipAdminController
* @author NHN (developers@xpressengine.com)
* @brief krzip 모듈의 admin controller class
* @brief admin controller class of the krzip module
**/
class krzipAdminController extends krzip {
/**
* @brief 초기화
* @brief Initialization
**/
function init() {
}
/**
* @brief 설정
* @brief Configuration
**/
function procKrzipAdminInsertConfig() {
// 기본 정보를 받음
// Get the basic information
$args = Context::gets('krzip_server_hostname','krzip_server_port','krzip_server_query');
if(!$args->krzip_server_hostname) $args->krzip_server_hostname = $this->hostname;
if(!$args->krzip_server_port) $args->krzip_server_port = $this->port;
if(!$args->krzip_server_query) $args->krzip_server_query = $this->query;
// module Controller 객체 생성하여 입력
// Insert by creating the module Controller object
$oModuleController = &getController('module');
$output = $oModuleController->insertModuleConfig('krzip',$args);
return $output;

View file

@ -2,27 +2,26 @@
/**
* @class krzipAdminView
* @author NHN (developers@xpressengine.com)
* @brief krzip 모듈의 admin view class
* @brief admin view class of the krzip module
**/
class krzipAdminView extends krzip {
/**
* @brief 초기화
* @brief Initialization
**/
function init() {
}
/**
* @brief 설정
* @brief Configuration
**/
function dispKrzipAdminConfig() {
// 설정 정보를 받아옴 (module model 객체를 이용)
// Get configurations (using module model object)
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('krzip');
Context::set('config',$config);
// 템플릿 파일 지정
// Set a template file
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('index');
}

View file

@ -2,7 +2,7 @@
/**
* @class krzip
* @author NHN (developers@xpressengine.com)
* @brief 우편번호 검색 모듈인 krzip의 상위 클래스
* @brief Super class of krzip, which is a zip code search module
**/
class krzip extends ModuleObject {
@ -12,28 +12,28 @@
var $query = '/server.php?addr3=';
/**
* @brief 설치시 추가 작업이 필요할시 구현
* @brief Implement if additional tasks are necessary when installing
**/
function moduleInstall() {
return new Object();
}
/**
* @brief 설치가 이상이 없는지 체크하는 method
* @brief a method to check if successfully installed
**/
function checkUpdate() {
return false;
}
/**
* @brief 업데이트 실행
* @brief Execute update
**/
function moduleUpdate() {
return new Object();
}
/**
* @brief 캐시 파일 재생성
* @brief Re-generate the cache file
**/
function recompileCache() {
}

View file

@ -2,34 +2,32 @@
/**
* @class krzipModel
* @author NHN (developers@xpressengine.com)
* @brief krzip 모듈의 model 클래스
* @brief model class of the krzip module
**/
class krzipModel extends krzip {
/**
* @brief 초기화
* @brief Initialization
**/
function init() {
}
/**
* @brief 우편 번호 검색
* 동이름을 입력받아서 지정된 서버에 우편번호 목록을 요청한다
* @brief Zip Code Search
* Request a zip code to the server with user-entered address
**/
function getKrzipCodeList() {
// 설정 정보를 받아옴 (module model 객체를 이용)
// Get configurations (using module model object)
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('krzip');
if($config->krzip_server_hostname) $this->hostname = $config->krzip_server_hostname;
if($config->krzip_server_port) $this->port = $config->krzip_server_port;
if($config->krzip_server_query) $this->query = $config->krzip_server_query;
// 동네 이름을 받음
// Get address(town)
$addr = trim(Context::get('addr'));
if(!$addr) return new Object(-1,'msg_not_exists_addr');
// 지정된 서버에 요청을 시도한다
// Attempt to request to the server
$query_string = $this->query.urlencode($addr);
$fp = @fsockopen($this->hostname, $this->port, $errno, $errstr);