mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
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:
parent
693e215bc1
commit
4d272994dd
219 changed files with 6407 additions and 8705 deletions
|
|
@ -2,13 +2,13 @@
|
|||
/**
|
||||
* @class sessionModel
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief session 모듈의 Model class
|
||||
* @brief The Model class of the session module
|
||||
**/
|
||||
|
||||
class sessionModel extends session {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
* @brief Initialization
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
|
@ -22,16 +22,14 @@
|
|||
|
||||
$args->session_key = $session_key;
|
||||
$output = executeQuery('session.getSession', $args);
|
||||
|
||||
// 읽기 오류 발생시 테이블 생성 유무 확인
|
||||
// Confirm there is a table created if read error occurs
|
||||
if(!$output->toBool()) {
|
||||
$oDB = &DB::getInstance();
|
||||
if(!$oDB->isTableExists('session')) $oDB->createTableByXmlFile($this->module_path.'schemas/session.xml');
|
||||
if(!$oDB->isColumnExists("session","cur_mid")) $oDB->addColumn('session',"cur_mid","varchar",128);
|
||||
$output = executeQuery('session.getSession', $args);
|
||||
}
|
||||
|
||||
// 세션 정보에서 cur_mid값이 없을 경우 테이블 생성 체크
|
||||
// Check if there is a table created in case there is no "cur_mid" value in the sessions information
|
||||
if(!isset($output->data->cur_mid)) {
|
||||
$oDB = &DB::getInstance();
|
||||
if(!$oDB->isColumnExists("session","cur_mid")) $oDB->addColumn('session',"cur_mid","varchar",128);
|
||||
|
|
@ -41,12 +39,12 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief 현재 접속중인 사용자의 목록을 구함
|
||||
* 여러개의 인자값을 필요로 해서 object를 인자로 받음
|
||||
* limit_count : 대상 수
|
||||
* page : 페이지 번호
|
||||
* period_time : 인자의 값을 n으로 하여 최근 n분 이내에 세션을 갱신한 대상을 추출함
|
||||
* mid : 특정 mid에 속한 사용자
|
||||
* @brief Get a list of currently connected users
|
||||
* Requires "object" argument because multiple arguments are expected
|
||||
* limit_count : the number of objects
|
||||
* page : the page number
|
||||
* period_time: "n" specifies the time range in minutes since the last update
|
||||
* mid: a user who belong to a specified mid
|
||||
**/
|
||||
function getLoggedMembers($args) {
|
||||
if(!$args->site_srl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue