커스텀 알림의 타입리스트를 확인하고 해당 알림을 삭제할 수 있도록 개선

This commit is contained in:
BJRambo 2017-05-02 02:50:32 +09:00
parent de7213bb22
commit f702b6c7d6
9 changed files with 138 additions and 0 deletions

View file

@ -172,4 +172,32 @@ class ncenterliteAdminController extends ncenterlite
return;
}
}
/**
* @brief 알림센터에 생성된 커스텀 알림을 삭제하는 기능.
*/
function procNcenterliteAdminDeleteCustom()
{
$obj = Context::getRequestVars();
$args = new stdClass();
$args->notify_type_srl = $obj->notify_type_srl;
$output = executeQuery('ncenterlite.deleteNotifyType', $args);
if(!$output->toBool())
{
return $output;
}
$this->setMessage("success_deleted");
if(Context::get('success_return_url'))
{
$this->setRedirectUrl(Context::get('success_return_url'));
}
else
{
$this->setRedirectUrl(getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNcenterliteAdminCustomList'));
}
}
}