-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsteamxe.admin.controller.php
More file actions
36 lines (29 loc) · 1.14 KB
/
steamxe.admin.controller.php
File metadata and controls
36 lines (29 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* @class steamxeAdminController
* @author 스비라
* @brief SteamXE 모듈의 admin controller class
*/
class steamxeAdminController extends steamxe {
/**
* @brief 초기화
**/
function init()
{
}
/**
* @brief 설정 저장
**/
public function procSteamxeAdminSaveConfig() {
if(Context::get('skin')) $args->skin = Context::get('skin');
if(Context::get('apikey')) $args->apikey = Context::get('apikey');
if(Context::get('required_games')) $args->required_games = Context::get('required_games');
$oModuleController = getController('module');
$output = $oModuleController->updateModuleConfig('steamxe', $args);
// default setting end
$this->setMessage('success_updated');
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispSteamxeAdminConfig');
$this->setRedirectUrl($returnUrl);
}
}
?>