mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
#2129 모듈 업데이트 기록 및 확인 기능 추가
- moduleModel::needUpdate() - moduleController::insertUpdatedLog()
This commit is contained in:
parent
4eae6ac04e
commit
6679dbf181
5 changed files with 58 additions and 0 deletions
|
|
@ -1567,6 +1567,26 @@ class moduleModel extends module
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 업데이트 적용 여부 확인
|
||||
* @param array|string $update_id
|
||||
* @return Boolean
|
||||
*/
|
||||
public function needUpdate($update_id)
|
||||
{
|
||||
if(!is_array($update_id)) $update_id = array($update_id);
|
||||
|
||||
$args = new stdClass();
|
||||
$args->update_id = implode(',', $update_id);
|
||||
$output = executeQueryArray('module.getModuleUpdateLog', $args);
|
||||
|
||||
if(!!$output->error) return false;
|
||||
if(!$output->data) $output->data = array();
|
||||
if(count($update_id) === count($output->data)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get a type and information of the module
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue