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 | declare(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 | */ |
| 21 | define("M_ANY", -1); |
| 22 | |
| 23 | /** |
| 24 | * No access at all |
| 25 | */ |
| 26 | define("M_NONE", 1); |
| 27 | |
| 28 | /** |
| 29 | * Read access only |
| 30 | */ |
| 31 | define("M_READ", 2); |
| 32 | |
| 33 | /** |
| 34 | * Read and write access only |
| 35 | */ |
| 36 | define("M_READWRITE", 3); |
| 37 | |
| 38 | /** |
| 39 | * Unrestricted access |
| 40 | */ |
| 41 | define("M_ALL", 4); |
| 42 | |
| 43 | /** |
| 44 | * Lowest access right |
| 45 | */ |
| 46 | define("M_LOWEST_RIGHT", 1); |
| 47 | |
| 48 | /** |
| 49 | * Highest access right |
| 50 | */ |
| 51 | define("M_HIGHEST_RIGHT", 4); |
| 52 | |
| 53 | /** |
| 54 | * Operation greater than or equal |
| 55 | */ |
| 56 | define ("O_GTEQ", ">="); |
| 57 | |
| 58 | /** |
| 59 | * Operation lower than or equal |
| 60 | */ |
| 61 | define ("O_LTEQ", "<="); |
| 62 | |
| 63 | /** |
| 64 | * Operation equal |
| 65 | */ |
| 66 | define ("O_EQ", "="); |
| 67 | |
| 68 | /** |
| 69 | * Folder notification |
| 70 | */ |
| 71 | define("T_FOLDER", 1); //TargetType = Folder |
| 72 | |
| 73 | /** |
| 74 | * Document notification |
| 75 | */ |
| 76 | define("T_DOCUMENT", 2); // " = Document |
| 77 | |
| 78 | /** |
| 79 | * Notify on all actions on the folder/document |
| 80 | */ |
| 81 | define("N_ALL", 0); |
| 82 | |
| 83 | /** |
| 84 | * Notify when object has been deleted |
| 85 | */ |
| 86 | define("N_DELETE", 1); |
| 87 | |
| 88 | /** |
| 89 | * Notify when object has been moved |
| 90 | */ |
| 91 | define("N_MOVE", 2); |
| 92 | |
| 93 | /** |
| 94 | * Notify when object has been updated (no new version) |
| 95 | */ |
| 96 | define("N_UPDATE", 3); |
| 97 | |
| 98 | /** |
| 99 | * Notify when document has new version |
| 100 | */ |
| 101 | define("N_NEW_VERSION", 4); |
| 102 | |
| 103 | /** |
| 104 | * Notify when version of document was deleted |
| 105 | */ |
| 106 | define("N_DELETE_VERSION", 5); |
| 107 | |
| 108 | /** |
| 109 | * Notify when version of document was deleted |
| 110 | */ |
| 111 | define("N_ADD_DOCUMENT", 6); |