\n";
// if collaboration has started then revisions are minor
- if (Document::documentCollaborationStarted($oDocument->getID())) {
+ if (DocumentCollaboration::documentCollaborationStarted($oDocument->getID())) {
$sToRender .= "\n";
// else there is no collaboration, revisions are major (or override?)
} else {
diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
index 021cafb..d9d4753 100644
--- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
+++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
@@ -210,12 +210,12 @@ function getEditPage($oDocument) {
$sToRender .= "\t\t
" . renderEditableDocumentRouting($oDocument) . "
\n";
$sToRender .= "\t
";
$sToRender .= "\t
\n";
- if ($oDocument->hasCollaboration() && (!Document::documentCollaborationStarted($oDocument->getID())) && ($_SESSION["userID"] == $oDocument->getCreatorID())) {
+ if ($oDocument->hasCollaboration() && (!DocumentCollaboration::documentCollaborationStarted($oDocument->getID())) && ($_SESSION["userID"] == $oDocument->getCreatorID())) {
//if not all collaboration steps have been set, then you cannot start the collaboration process
//only the creator of the document can start the collaboration process
$sToRender .= "\t\t
\n";
- } else if (Document::userIsPerformingCurrentCollaborationStep($oDocument->getID())) {
+ } else if (DocumentCollaboration::userIsPerformingCurrentCollaborationStep($oDocument->getID())) {
//if the current user is responsible for an active step in the collaboration process
$sToRender .= "\t\t
\n";
$sToRender .= "\t\t
You currently have an active role in the collaboration process
\n";
}
- if (!Document::documentIsPendingWebPublishing($iDocumentID)) {
+ if (!DocumentCollaboration::documentIsPendingWebPublishing($iDocumentID)) {
// only display for unpublished documents
// if there is collaboration
if ($oDocument->hasCollaboration()) {
// only display publish button if collaboration is complete and you're the last user in the collaboration process
- if (Document::documentCollaborationDone($oDocument->getID()) && ($_SESSION["userID"] == Document::getLastCollaboratorID($iDocumentID))) {
+ if (DocumentCollaboration::documentCollaborationDone($oDocument->getID()) && ($_SESSION["userID"] == DocumentCollaboration::getLastCollaboratorID($iDocumentID))) {
$sToRender .= "
";
- if (Document::userIsPerformingCurrentCollaborationStep($oDocument->getID())) {
+ if (DocumentCollaboration::userIsPerformingCurrentCollaborationStep($oDocument->getID())) {
//if the current user is responsible for an active step in the collaboration process
$sToRender .= "\t\t
\n";
$sToRender .= "\t\t
You currently have an active role in the collaboration process