Repository navigation
Expand file tree
/
Copy pathsetup.php
More file actions
50 lines (42 loc) · 1.43 KB
/
Copy pathsetup.php
File metadata and controls
50 lines (42 loc) · 1.43 KB
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
<?php
/**
* HL API Actors — filterable ticket actors for the GLPI 12 high-level API (v2.3 and v3.0).
*
* The core API exposes requesters / observers / assignees only as the computed
* `team` property, which cannot be used in RSQL filters (glpi-project/glpi#20743).
* This plugin adds real SQL-join properties to the Ticket, Change and Problem
* schemas so that e.g. `filter=assignees.id==42;status.id=out=(5,6)` works.
*/
use Glpi\Plugin\Hooks;
define('PLUGIN_HLAPIACTORS_VERSION', '2.1.0');
define('PLUGIN_HLAPIACTORS_MIN_GLPI', '12.0.0');
define('PLUGIN_HLAPIACTORS_MAX_GLPI', '12.0.99');
function plugin_init_hlapiactors(): void
{
global $PLUGIN_HOOKS;
$PLUGIN_HOOKS[Hooks::REDEFINE_API_SCHEMAS]['hlapiactors'] = 'plugin_hlapiactors_redefine_api_schemas';
}
function plugin_version_hlapiactors(): array
{
return [
'name' => 'HL API Actors',
'version' => PLUGIN_HLAPIACTORS_VERSION,
'author' => 'hlapiactors contributors',
'license' => 'GPLv3+',
'homepage' => 'https://github.com/BTLzdravtech/glpi-hlapiactors',
'requirements' => [
'glpi' => [
'min' => PLUGIN_HLAPIACTORS_MIN_GLPI,
'max' => PLUGIN_HLAPIACTORS_MAX_GLPI,
],
],
];
}
function plugin_hlapiactors_check_prerequisites(): bool
{
return true;
}
function plugin_hlapiactors_check_config($verbose = false): bool
{
return true;
}