From d76d71893a24b0389b7d9054e3e6143f2a6ba09d Mon Sep 17 00:00:00 2001 From: steinm Date: Tue, 23 Oct 2012 09:16:38 +0000 Subject: [PATCH] - added some more documentation --- LetoDMS_Core/Core/inc.ClassDocument.php | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/LetoDMS_Core/Core/inc.ClassDocument.php b/LetoDMS_Core/Core/inc.ClassDocument.php index e70ba51ae..edb1c3f19 100644 --- a/LetoDMS_Core/Core/inc.ClassDocument.php +++ b/LetoDMS_Core/Core/inc.ClassDocument.php @@ -15,11 +15,41 @@ /** * The different states a document can be in */ +/* + * Document is in review state. A document is in review state when + * it needs to be reviewed by a user or group. + */ define("S_DRAFT_REV", 0); + +/* + * Document is in approval state. A document is in approval state when + * it needs to be approved by a user or group. + */ define("S_DRAFT_APP", 1); + +/* + * Document is released. A document is in release state either when + * it needs no review or approval after uploaded or has been reviewed + * and/or approved.. + */ define("S_RELEASED", 2); + +/* + * Document was rejected. A document is in rejected state when + * the review failed or approval was not given. + */ define("S_REJECTED", -1); + +/* + * Document is obsolete. A document can be obsoleted once it was + * released. + */ define("S_OBSOLETE", -2); + +/* + * Document is expired. A document expires when the expiration date + * is reached + */ define("S_EXPIRED", -3); /**