-
Notifications
You must be signed in to change notification settings - Fork 3
/
manifest.php
executable file
·76 lines (72 loc) · 3.51 KB
/
manifest.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; under version 2
* of the License (non-upgradable).
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Copyright (c) 2015-2019 (original work) Open Assessment Technologies SA;
*
*/
use oat\taoClientDiagnostic\model\ClientDiagnosticRoles;
use oat\taoClientDiagnostic\controller\DiagnosticChecker;
use oat\taoClientDiagnostic\controller\Diagnostic;
use oat\taoClientDiagnostic\scripts\install\createDiagnosticTable;
use oat\tao\model\accessControl\func\AccessRule;
use oat\taoClientDiagnostic\scripts\install\RegisterDiagnosticComponent;
use oat\taoClientDiagnostic\scripts\install\SetupServices;
return array(
'name' => 'taoClientDiagnostic',
'label' => 'Browser and OS diagnostic tool',
'description' => 'Check compatibility of the os and browser of a client',
'license' => 'GPL-2.0',
'author' => 'Open Assessment Technologies SA',
'managementRole' => 'http://www.tao.lu/Ontologies/generis.rdf#taoClientDiagnosticManager',
'acl' => array(
//phpcs:disable
array('grant', 'http://www.tao.lu/Ontologies/generis.rdf#taoClientDiagnosticManager', array('ext' => 'taoClientDiagnostic')),
array('grant', 'http://www.tao.lu/Ontologies/generis.rdf#AnonymousRole', array('ext' => 'taoClientDiagnostic','mod' => 'CompatibilityChecker')),
array('grant', 'http://www.tao.lu/Ontologies/generis.rdf#AnonymousRole', array('ext' => 'taoClientDiagnostic','mod' => 'Authenticator')),
array(AccessRule::GRANT, ClientDiagnosticRoles::READINESS_CHECKER_ROLE, Diagnostic::class),
array(AccessRule::GRANT, ClientDiagnosticRoles::READINESS_CHECKER_ROLE, DiagnosticChecker::class),
//phpcs:enable
),
'install' => array(
'rdf' => array(
//phpcs:disable
__DIR__ . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'ontology' . DIRECTORY_SEPARATOR . 'roles.rdf',
__DIR__ . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'ontology' . DIRECTORY_SEPARATOR . 'ExcludedBrowsersList.rdf',
__DIR__ . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'ontology' . DIRECTORY_SEPARATOR . 'ExcludedOSList.rdf',
//phpcs:enable
),
'php' => array(
createDiagnosticTable::class,
RegisterDiagnosticComponent::class,
SetupServices::class,
)
),
'uninstall' => array(
),
'update' => 'oat\\taoClientDiagnostic\\scripts\\update\\Updater',
'routes' => array(
'/taoClientDiagnostic' => 'oat\\taoClientDiagnostic\\controller'
),
'constants' => array(
# views directory
"DIR_VIEWS" => dirname(__FILE__) . DIRECTORY_SEPARATOR . "views" . DIRECTORY_SEPARATOR,
#BASE URL (usually the domain root)
'BASE_URL' => ROOT_URL . 'taoClientDiagnostic/',
),
'extra' => array(
'structures' => dirname(__FILE__) . DIRECTORY_SEPARATOR . 'controller' . DIRECTORY_SEPARATOR . 'structures.xml',
)
);