forked from stephenr85/concrete5_legacy_multi_file_selector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontroller.php
37 lines (27 loc) · 1.07 KB
/
controller.php
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
<?php defined('C5_EXECUTE') or die(_("Access Denied."));
/**
* Provides a helper that creates a field for selecting multiple files. Also provides a block type and attribute type that employs the helper.
* @package Section Title
* @author Stephen Rushing
* @category Packages
* @copyright Copyright (c) 2011 Stephen Rushing. (http://www.esiteful.com)
*/
class MultiFileSelectorPackage extends Package {
protected $pkgHandle = 'multi_file_selector';
protected $appVersionRequired = '5.4.0';
protected $pkgVersion = '0.9';
public function getPackageDescription() {
return t("Provides a helper that creates a field for selecting multiple files. Also provides a block type and attribute type that employs the helper.");
}
public function getPackageName() {
return t("Multi-File Selector");
}
public function install() {
$pkg = parent::install();
BlockType::installBlockTypeFromPackage('multi_file_selector', $pkg);
AttributeType::add('multi_file_selector', t('Multi-File Selector'), $pkg);
}
public function upgrade(){
parent::upgrade();
}
}