#2129 모듈 업데이트 기록 및 확인 기능 추가

- moduleModel::needUpdate()
- moduleController::insertUpdatedLog()
This commit is contained in:
bnu 2017-08-11 15:57:10 +09:00 committed by Kijin Sung
parent 4eae6ac04e
commit 6679dbf181
5 changed files with 58 additions and 0 deletions

View file

@ -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
*/