N2SystemApplicationInfo.php
943 Bytes
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
<?php
class N2SystemApplicationInfo extends N2ApplicationInfo {
public function __construct() {
$this->path = dirname(__FILE__);
$this->assetPath = realpath(N2LIBRARYASSETS);
parent::__construct();
}
public function isPublic() {
return false;
}
public function getName() {
return 'system';
}
public function getLabel() {
return 'Nextend system application';
}
public function getInstance() {
require_once $this->path . NDS . "N2SystemApplication.php";
return new N2SystemApplication($this);
}
public function getPathKey() {
return '$system$';
}
public function assetsBackend() {
$path = $this->getAssetsPath();
N2JS::addStaticGroup($path . "/dist/system-backend.min.js", "system-backend");
}
public function assetsFrontend() {
}
}
return new N2SystemApplicationInfo();