-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontroller.php
executable file
·37 lines (28 loc) · 991 Bytes
/
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
namespace Concrete\Package\MultiUserSelectorAttribute;
use Concrete\Core\Attribute\Key\Category as AttributeKeyCategory;
use Concrete\Core\Attribute\Type as AttributeType;
use Concrete\Core\Package\Package;
class controller extends Package
{
protected $pkgHandle = 'multi_user_selector_attribute';
protected $appVersionRequired = '8.0';
protected $pkgVersion = '0.9.1';
public function getPackageName()
{
return t('Multi User Selector Attribute');
}
public function getPackageDescription()
{
return t('Link one or more users to an entity');
}
public function install()
{
$pkg = parent::install();
$at = AttributeType::add('multi_user_selector', t('Multi User Selector'), $pkg);
$col = AttributeKeyCategory::getByHandle('collection');
$col->associateAttributeKeyType($at);
$col = AttributeKeyCategory::getByHandle('file');
$col->associateAttributeKeyType($at);
}
}