Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
19 / 19 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * Some definitions for access control |
4 | * |
5 | * @category DMS |
6 | * @package SeedDMS_Core |
7 | * @license GPL 2 |
8 | * @version @version@ |
9 | * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx> |
10 | * @copyright Copyright (C) 2002-2005 Markus Westphal, |
11 | * 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann |
12 | * @version Release: @package_version@ |
13 | */ |
14 | |
15 | /** |
16 | * Used to indicate that a search should return all |
17 | * results in the ACL table. See {@link SeedDMS_Core_Folder::getAccessList()} |
18 | */ |
19 | define("M_ANY", -1); |
20 | |
21 | /** |
22 | * No rights at all |
23 | */ |
24 | define("M_NONE", 1); |
25 | |
26 | /** |
27 | * Read access only |
28 | */ |
29 | define("M_READ", 2); |
30 | |
31 | /** |
32 | * Read and write access only |
33 | */ |
34 | define("M_READWRITE", 3); |
35 | |
36 | /** |
37 | * Unrestricted access |
38 | */ |
39 | define("M_ALL", 4); |
40 | |
41 | /* |
42 | * Lowest and highest access right |
43 | */ |
44 | define("M_LOWEST_RIGHT", 1); |
45 | define("M_HIGHEST_RIGHT", 4); |
46 | |
47 | define ("O_GTEQ", ">="); |
48 | define ("O_LTEQ", "<="); |
49 | define ("O_EQ", "="); |
50 | |
51 | /** |
52 | * Folder notification |
53 | */ |
54 | define("T_FOLDER", 1); //TargetType = Folder |
55 | |
56 | /** |
57 | * Document notification |
58 | */ |
59 | define("T_DOCUMENT", 2); // " = Document |
60 | |
61 | /** |
62 | * Notify on all actions on the folder/document |
63 | */ |
64 | define("N_ALL", 0); |
65 | |
66 | /** |
67 | * Notify when object has been deleted |
68 | */ |
69 | define("N_DELETE", 1); |
70 | |
71 | /** |
72 | * Notify when object has been moved |
73 | */ |
74 | define("N_MOVE", 2); |
75 | |
76 | /** |
77 | * Notify when object has been updated (no new version) |
78 | */ |
79 | define("N_UPDATE", 3); |
80 | |
81 | /** |
82 | * Notify when document has new version |
83 | */ |
84 | define("N_NEW_VERSION", 4); |
85 | |
86 | /** |
87 | * Notify when version of document was deleted |
88 | */ |
89 | define("N_DELETE_VERSION", 5); |
90 | |
91 | /** |
92 | * Notify when version of document was deleted |
93 | */ |
94 | define("N_ADD_DOCUMENT", 6); |