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