Commit Graph

47 Commits

Author SHA1 Message Date
Uwe Steinmann
0b69ddb439 callbacks can have more than one user function 2016-04-26 12:06:41 +02:00
Uwe Steinmann
2c14ec295a various minor clean ups
remove old code, add scope of variables, add additional comments
2016-04-07 08:29:35 +02:00
Uwe Steinmann
ae14f25d58 add more callbacks 2016-04-04 07:39:39 +02:00
Uwe Steinmann
510e177391 fix setting multi value attributes for a version 2016-03-23 08:30:38 +01:00
Uwe Steinmann
826c9fca72 use __construct for constructor 2016-03-22 15:08:36 +01:00
Uwe Steinmann
6ad953005d take out echo of sql statement 2015-12-09 18:06:23 +01:00
Uwe Steinmann
666fc944ff getReadAccess() returns right list of users
doesn't return users anymore which have no read access
because the group has no read access
2015-12-09 18:01:27 +01:00
Uwe Steinmann
54b2e8a881 add statusid and fileid in entry of timeline 2015-10-19 13:12:35 +02:00
Uwe Steinmann
3f82cb1957 do not add item to timeline if date is empty 2015-09-23 15:47:46 +02:00
Uwe Steinmann
083e323721 take out creation of content from timeline
it will be added by the status log anyway
2015-09-22 09:24:06 +02:00
Uwe Steinmann
daa72a9ca3 user getCurrentTimestamp() and getCurrentDatetime() 2015-09-22 07:50:36 +02:00
Uwe Steinmann
8295cde1e7 add getCurrentTimestamp() to database driver
will return datetime('now', 'localtime') for sqlite because otherwise
it will return GMT
2015-09-21 18:08:05 +02:00
Uwe Steinmann
c385d86a60 add timeline over all documents 2015-09-21 16:46:17 +02:00
Uwe Steinmann
753733d153 set type and params in list of timeline actions 2015-09-18 07:54:08 +02:00
Uwe Steinmann
b55627f213 add initial support for timeline of recent changes 2015-09-16 21:19:46 +02:00
Uwe Steinmann
123cccc72a getAccessMode() takes user/group rights in acls into account for guests 2015-08-19 08:21:15 +02:00
Uwe Steinmann
bc1eecc08c add methods to rewrite approval and review log 2015-08-04 07:38:45 +02:00
Uwe Steinmann
53bac225fb add SeedDMS_Core_Document::setDate() 2015-07-31 15:34:07 +02:00
Uwe Steinmann
01c30a0b8a add new method rewriteStatusLog(), add option parameter date to
setStatus()
2015-07-31 15:30:35 +02:00
Uwe Steinmann
68d1816251 add optional parameter cleasAccessList()
will turn off removal of notification
2015-06-19 15:24:19 +02:00
Uwe Steinmann
28bfe5c1d7 add cleanNotifyList() which removes users/groups with read access
also adds an optional parameter $noclean to setDefaultAccess and
setInheritAccess which keeps the methods from cleaning up the
notifier list
2015-06-19 15:02:37 +02:00
Uwe Steinmann
c4bea610cb setDefaultAccess() propperly removes notifier without read access 2015-06-19 12:52:49 +02:00
Uwe Steinmann
418da4cb52 rename approveLogId to approveLogID 2015-06-12 12:42:37 +02:00
Uwe Steinmann
5b40c64413 manage file uploaded with review or approval 2015-06-11 21:28:04 +02:00
Uwe Steinmann
1a63dbb1de unset $this->_status in SeedDMS_Core_DocumentContent::setStatus() 2015-05-30 07:35:27 +02:00
Uwe Steinmann
c2b2240238 pass on msg to setStatus() in verifyStatus() 2015-05-04 08:39:24 +02:00
Uwe Steinmann
e47218eb32 add optional parameter $msg to
SeedDMS_Core_DocumentContent::verifyStatus()

set when method is called in removeWorkflow
2015-05-04 08:29:23 +02:00
Uwe Steinmann
62be2422d0 fix error in managing reviewers 2015-04-20 18:35:05 +02:00
Uwe Steinmann
57520f27cf clean workflow log if document version is deleted 2015-03-27 17:15:21 +01:00
Uwe Steinmann
d6565041cd add new methode replaceContent()
instead of adding a new version, this function replaces the content
file of a version
2014-11-27 13:40:58 +01:00
Uwe Steinmann
59663b4bf5 add better document link handling
add new method getReverseDocumentLinks() which returns links with a
given target document. Add optional parameters $publiconly and $user
for filtering links when executing the sql statement
2014-03-18 07:03:40 +01:00
Uwe Steinmann
633ae6e7e6 add some more docu, turn of caching in getApprovalStatus()
see FIXME comment
2013-10-06 08:09:37 +02:00
Uwe Steinmann
0c1c829cca fix description of some methods (no code change) 2013-09-27 08:23:11 +02:00
Uwe Steinmann
dc91417bcc remove some echo statements 2013-05-28 17:32:16 +02:00
Uwe Steinmann
36942e879e Merge branch 'seeddms-4.2.2' into develop 2013-05-07 20:20:19 +02:00
Uwe Steinmann
8cac883395 approver/reviewer can be set, even if admin
The old code got a list of all users with read rights on the document
and then checked if the users to be added as a reviewer/approver is
in this list. This did not work for the admin because the list
only includes regular users.
2013-05-07 20:16:09 +02:00
Uwe Steinmann
982d088339 status of latest document version is set to expired even if already released 2013-04-30 17:45:28 +02:00
Uwe Steinmann
9a9c57211e set typo in comment 2013-04-30 17:42:07 +02:00
Uwe Steinmann
355900995d fix error when adding individual approver 2013-04-30 08:01:17 +02:00
Uwe Steinmann
93e0cb3feb add method needsWorkflowAction($user)
This method checks if the document content needs a action from the
given user to trigger a transition
2013-04-18 13:36:11 +02:00
Uwe Steinmann
db53b06b18 add documtation for getDocumentLink() and getDocumentLinks() 2013-04-10 15:39:50 +02:00
Uwe Steinmann
619a3208af getWorkflow() returns the last workflow, runSubWorkflow() sets date in db 2013-03-15 17:59:23 +01:00
Uwe Steinmann
1affdaff71 fix typo in variable name 2013-03-12 08:47:57 +01:00
Uwe Steinmann
17f602fc8b getWorkflowLog() returns log entries even if workflow has ended 2013-03-08 14:20:27 +01:00
Uwe Steinmann
c9a18c2538 check if notification exists before removing them 2013-03-06 12:53:00 +01:00
Uwe Steinmann
1b8aabdb06 added parameter to getReadAccessList()
the former settings value enableAdminRevApp will now be passed
to the function getReadAccessList(). A new parameter for adding
the owner was added too.
2013-02-27 09:06:45 +01:00
Uwe Steinmann
73c6ff9427 major name change from letodms to seeddms 2013-02-14 12:10:53 +01:00