XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
modules
widget
widget.admin.view.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
8
class
widgetAdminView
extends
widget
9
{
13
function
init
()
14
{
15
$this->
setTemplatePath
($this->module_path.
'tpl'
);
16
}
17
21
function
dispWidgetAdminDownloadedList
()
22
{
23
// Set widget list
24
$oWidgetModel =
getModel
(
'widget'
);
25
$widget_list = $oWidgetModel->getDownloadedWidgetList();
26
27
$security =
new
Security
($widget_list);
28
$widget_list = $security->encodeHTML(
'..'
,
'..author..'
);
29
30
foreach
($widget_list as $no => $widget)
31
{
32
if
($widget->widget)
33
{
34
$widget_list[$no]->description = nl2br(trim($widget->description));
35
}
36
else
37
{
38
unset($widget_list[$no]);
39
}
40
}
41
42
Context::set
(
'widget_list'
, $widget_list);
43
Context::set
(
'tCount'
, count($widget_list));
44
45
$this->
setTemplateFile
(
'downloaded_widget_list'
);
46
}
47
48
function
dispWidgetAdminGenerateCode
()
49
{
50
$oView =
getView
(
'widget'
);
51
Context::set
(
'in_admin'
,
true
);
52
$this->
setTemplateFile
(
'widget_generate_code'
);
53
return
$oView->dispWidgetGenerateCode();
54
}
55
59
function
dispWidgetAdminAddContent
()
60
{
61
$module_srl
=
Context::get
(
'module_srl'
);
62
if
(!
$module_srl
)
return
$this->
stop
(
"msg_invalid_request"
);
63
64
$document_srl
=
Context::get
(
'document_srl'
);
65
$oDocumentModel
=
getModel
(
'document'
);
66
$oDocument =
$oDocumentModel
->getDocument(
$document_srl
);
67
Context::set
(
'oDocument'
, $oDocument);
68
69
$oModuleModel
=
getModel
(
'module'
);
70
$columnList = array(
'module_srl'
,
'mid'
);
71
$module_info
=
$oModuleModel
->getModuleInfoByModuleSrl(
$module_srl
, $columnList);
72
Context::set
(
'module_info'
,
$module_info
);
73
// Editors settings of the module by calling getEditor
74
$oEditorModel =
getModel
(
'editor'
);
75
$editor = $oEditorModel->getModuleEditor(
'document'
,
$module_srl
,
$module_srl
,
'module_srl'
,
'content'
);
76
Context::set
(
'editor'
, $editor);
77
78
$security =
new
Security
();
79
$security->encodeHTML(
'member_config..'
);
80
81
$this->
setLayoutPath
(
'./common/tpl'
);
82
$this->
setLayoutFile
(
"default_layout"
);
83
$this->
setTemplateFile
(
'add_content_widget'
);
84
}
85
}
86
/* End of file widget.admin.view.php */
87
/* Location: ./modules/widget/widget.admin.view.php */
widgetAdminView\init
init()
Initialization.
Definition:
widget.admin.view.php:13
ModuleObject\setTemplateFile
setTemplateFile($filename)
Definition:
ModuleObject.class.php:252
$oModuleModel
$oModuleModel
Definition:
ko.install.php:236
ModuleObject\stop
stop($msg_code)
Definition:
ModuleObject.class.php:227
ModuleObject\setLayoutFile
setLayoutFile($filename)
Definition:
ModuleObject.class.php:330
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
widget
widget module's high class
Definition:
widget.class.php:8
ModuleObject\$module_srl
$module_srl
integer value to represent a run-time instance of Module (XE Module)
Definition:
ModuleObject.class.php:14
getView
getView($module_name)
Definition:
func.inc.php:112
ModuleObject\$module_info
$module_info
an object containing the module information
Definition:
ModuleObject.class.php:15
$document_srl
$document_srl
Definition:
ko.install.php:279
$oDocumentModel
$oDocumentModel
Definition:
ko.install.php:259
Security
Definition:
Security.class.php:11
widgetAdminView\dispWidgetAdminDownloadedList
dispWidgetAdminDownloadedList()
Showing a list of widgets.
Definition:
widget.admin.view.php:21
widgetAdminView\dispWidgetAdminGenerateCode
dispWidgetAdminGenerateCode()
Definition:
widget.admin.view.php:48
getModel
getModel($module_name)
Definition:
func.inc.php:145
ModuleObject\setLayoutPath
setLayoutPath($path)
Definition:
ModuleObject.class.php:354
widgetAdminView
admin view class for widget modules
Definition:
widget.admin.view.php:8
Context\get
get($key)
Definition:
Context.class.php:1973
ModuleObject\setTemplatePath
setTemplatePath($path)
Definition:
ModuleObject.class.php:275
widgetAdminView\dispWidgetAdminAddContent
dispWidgetAdminAddContent()
For information on direct entry widget popup kkuhim.
Definition:
widget.admin.view.php:59
Generated on Tue Dec 18 2018 17:04:29 for XpressEngine Core by
1.8.5