XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
communication.admin.controller.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 
10 {
11 
15  function init()
16  {
17 
18  }
19 
25  {
26  // get the default information
27  $args = Context::gets('skin', 'colorset', 'editor_skin', 'sel_editor_colorset', 'mskin', 'mcolorset', 'layout_srl', 'mlayout_srl', 'grant_write_default','grant_write_group');
28  $args->editor_colorset = $args->sel_editor_colorset;
29  unset($args->sel_editor_colorset);
30 
31  if(!$args->skin)
32  {
33  $args->skin = 'default';
34  }
35 
36  if(!$args->colorset)
37  {
38  $args->colorset = 'white';
39  }
40 
41  if(!$args->editor_skin)
42  {
43  $args->editor_skin = 'default';
44  }
45 
46  if(!$args->mskin)
47  {
48  $args->mskin = 'default';
49  }
50 
51  if(!$args->layout_srl)
52  {
53  $args->layout_srl = NULL;
54  }
55 
56  $oCommunicationModel = getModel('communication');
57  $args->grant_write = $oCommunicationModel->getGrantArray($args->grant_write_default, $args->grant_write_group);
58  unset($args->grant_write_default);
59  unset($args->grant_write_group);
60 
61  // create the module module Controller object
63  $output = $oModuleController->insertModuleConfig('communication', $args);
64 
65  $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispCommunicationAdminConfig');
66 
67  return $this->setRedirectUrl($returnUrl, $output);
68  }
69 
70 }
71 /* End of file communication.admin.controller.php */
72 /* Location: ./modules/comment/communication.admin.controller.php */
getController($module_name)
Definition: func.inc.php:90
$output
Definition: ko.install.php:193
getNotEncodedUrl()
Definition: func.inc.php:316
$args
Definition: ko.install.php:185
setRedirectUrl($url= './', $output=NULL)
communication module of the admin controller class
getModel($module_name)
Definition: func.inc.php:145
$oModuleController
Definition: ko.install.php:287