2010-11-22 21:02:02 +00:00
|
|
|
<?php
|
2010-12-06 20:00:18 +00:00
|
|
|
/**
|
|
|
|
* Some definitions for access control
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS_Core
|
2010-12-06 20:00:18 +00:00
|
|
|
* @license GPL 2
|
|
|
|
* @version @version@
|
|
|
|
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
|
|
|
* 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
|
|
|
|
* @version Release: @package_version@
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Used to indicate that a search should return all
|
2013-02-14 11:10:53 +00:00
|
|
|
* results in the ACL table. See {@link SeedDMS_Core_Folder::getAccessList()}
|
2010-12-06 20:00:18 +00:00
|
|
|
*/
|
|
|
|
define("M_ANY", -1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* No rights at all
|
|
|
|
*/
|
|
|
|
define("M_NONE", 1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Read access only
|
|
|
|
*/
|
|
|
|
define("M_READ", 2);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Read and write access only
|
|
|
|
*/
|
|
|
|
define("M_READWRITE", 3);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Unrestricted access
|
|
|
|
*/
|
|
|
|
define("M_ALL", 4);
|
2010-11-22 21:02:02 +00:00
|
|
|
|
|
|
|
define ("O_GTEQ", ">=");
|
|
|
|
define ("O_LTEQ", "<=");
|
|
|
|
define ("O_EQ", "=");
|
|
|
|
|
2013-01-28 10:44:13 +00:00
|
|
|
/**
|
|
|
|
* Folder notification
|
|
|
|
*/
|
2010-11-22 21:02:02 +00:00
|
|
|
define("T_FOLDER", 1); //TargetType = Folder
|
2013-01-28 10:44:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Document notification
|
|
|
|
*/
|
2010-11-22 21:02:02 +00:00
|
|
|
define("T_DOCUMENT", 2); // " = Document
|
|
|
|
|
2013-01-28 10:44:13 +00:00
|
|
|
/**
|
|
|
|
* Notify on all actions on the folder/document
|
|
|
|
*/
|
|
|
|
define("N_ALL", 0);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify when object has been deleted
|
|
|
|
*/
|
|
|
|
define("N_DELETE", 1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify when object has been moved
|
|
|
|
*/
|
|
|
|
define("N_MOVE", 2);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify when object has been updated (no new version)
|
|
|
|
*/
|
|
|
|
define("N_UPDATE", 3);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify when document has new version
|
|
|
|
*/
|
|
|
|
define("N_NEW_VERSION", 4);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify when version of document was deleted
|
|
|
|
*/
|
|
|
|
define("N_DELETE_VERSION", 5);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify when version of document was deleted
|
|
|
|
*/
|
|
|
|
define("N_ADD_DOCUMENT", 6);
|
|
|
|
|
2010-11-22 21:02:02 +00:00
|
|
|
?>
|