rhymix/modules/counter/counter.class.php
Kijin Sung 8d2b105847 Clean up counter module
- 카운터 모듈을 정리하여 불필요한 쿼리 및 트랜잭션 제거
- 매일 첫 방문시 쿼리 오류 발생하는 문제 해결
- 더이상 사용하지 않는 $site_srl 기준의 테이블은 삭제
2021-01-08 20:53:54 +09:00

63 lines
940 B
PHP

<?php
/* Copyright (C) NAVER <http://www.navercorp.com> */
/**
* High class of counter module
*
* @author NAVER (developers@xpressengine.com)
*/
class counter extends ModuleObject
{
/**
* Implement if additional tasks are necessary when installing
* @return Object
*/
function moduleInstall()
{
}
/**
* method if successfully installed
*
* @return bool
*/
function checkUpdate()
{
$oDB = DB::getInstance();
if ($oDB->isTableExists('counter_site_status'))
{
return true;
}
return false;
}
/**
* Module update
*
* @return Object
*/
function moduleUpdate()
{
$oDB = DB::getInstance();
if ($oDB->isTableExists('counter_site_status'))
{
$oDB->dropTable('counter_site_status');
}
}
/**
* re-generate the cache file
*
* @return Object
*/
function recompileCache()
{
}
}
/* End of file counter.class.php */
/* Location: ./modules/counter/counter.class.php */