-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontroller.php
38 lines (32 loc) · 1008 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
38
<?php
namespace Concrete\Package\CommunityStoreExportData;
use Package;
use Page;
use SinglePage;
class Controller extends Package
{
protected $pkgHandle = 'community_store_export_data';
protected $appVersionRequired = '5.7.5';
protected $pkgVersion = '0.2';
public function getPackageDescription()
{
return t("Adds Community Store product and sales export capabilities to the dashboard");
}
public function getPackageName()
{
return t("Community Store Export Data");
}
public function install(){
$pkg = parent::install();
SinglePage::add('/dashboard/store/export', $pkg);
$salesPage = SinglePage::add('/dashboard/store/export/sales', $pkg);
$productsPage = SinglePage::add('/dashboard/store/export/products', $pkg);
$salesPage->update(array(
'cName' => 'Sales' // this updates the name
));
$productsPage->update(array(
'cName' => 'Products' // this updates the name
));
}
}
?>