mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
커스텀 알림의 타입리스트를 확인하고 해당 알림을 삭제할 수 있도록 개선
This commit is contained in:
parent
de7213bb22
commit
f702b6c7d6
9 changed files with 138 additions and 0 deletions
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue