-
Notifications
You must be signed in to change notification settings - Fork 1
/
controller.php
59 lines (48 loc) · 1.13 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
namespace Concrete\Package\MdCsvUserImportExport;
use Concrete\Core\Package\Package;
class Controller extends Package
{
/**
* @var string package handle
*/
protected $pkgHandle = 'md_csv_user_import_export';
/**
* @var string required concrete5 version
*/
protected $appVersionRequired = '9.0.0';
/**
* @var string package version
*/
protected $pkgVersion = '0.9.2';
/**
* {@inheritdoc}
*/
protected $pkgAutoloaderRegistries = [
'src' => '\Macareux\CsvUserImportExport',
];
/**
* Returns the translated package description.
*
* @return string
*/
public function getPackageDescription()
{
return t('Import users from csv file, export users as csv file.');
}
/**
* Returns the installed package name.
*
* @return string
*/
public function getPackageName()
{
return t('Macareux CSV User Import & Export');
}
public function install()
{
$pkg = parent::install();
$this->installContentFile('config/singlepages.xml');
return $pkg;
}
}