-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathUploadAddons.php
More file actions
104 lines (93 loc) · 2.44 KB
/
UploadAddons.php
File metadata and controls
104 lines (93 loc) · 2.44 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
// vim: set ts=4 sw=4 sts=4 et:
/**
* LiteCommerce
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to licensing@litecommerce.com so we can send you a copy immediately.
*
* PHP version 5.3.0
*
* @category LiteCommerce
* @author Creative Development LLC <info@cdev.ru>
* @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link http://www.litecommerce.com/
* @see ____file_see____
* @since 1.0.0
*/
namespace XLite\View\ModulesManager;
/**
* Modules upload widget
*
* @see ____class_see____
* @since 1.0.0
*
* @ListChild (list="admin.center", zone="admin")
*/
class UploadAddons extends \XLite\View\Dialog
{
/**
* Target that is allowed for Upload Addons widget
*/
const UPLOAD_ADDONS_TARGET = 'addon_upload';
/**
* Javascript file that is used for multiadd functionality
*/
const JS_SCRIPT = 'modules_manager/upload_addons/js/upload_addons.js';
/**
* Return list of targets allowed for this widget
*
* @return array
* @see ____func_see____
* @since 1.0.0
*/
public static function getAllowedTargets()
{
$result = parent::getAllowedTargets();
$result[] = self::UPLOAD_ADDONS_TARGET;
return $result;
}
/**
* Get a list of JavaScript files required to display the widget properly
*
* @return void
* @see ____func_see____
* @since 1.0.0
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
$list[] = self::JS_SCRIPT;
return $list;
}
/**
* Return title
*
* @return string
* @see ____func_see____
* @since 1.0.0
*/
protected function getHead()
{
return static::t('Upload add-on');
}
/**
* Return templates directory name
*
* @return string
* @see ____func_see____
* @since 1.0.0
*/
protected function getDir()
{
return 'modules_manager/upload_addons';
}
}