Commit Graph

778 Commits

Author SHA1 Message Date
Uwe Steinmann
f4c25576bc addRevisor() puts recheck into waiting if recheck has already begun
previously it was put into sleeping, which didn't the user/group
to do the recheck.
2017-12-08 10:52:23 +01:00
Uwe Steinmann
0640b39c85 check for === false after calling onPreRemoveDocument 2017-12-07 08:53:40 +01:00
Uwe Steinmann
b68cfe3893 add SeedDMS_Core_Document::transferToUser() 2017-12-05 18:31:04 +01:00
Uwe Steinmann
e3d1cc172b add method to set name, comment, version, public flag of document files 2017-12-05 08:27:14 +01:00
Uwe Steinmann
822e6c13f2 add optional parameters to getDocumentsByCategory, new method countDocumentsByCategory 2017-12-04 15:22:48 +01:00
Uwe Steinmann
78f4d62e36 optimized code to get various document lists 2017-11-21 11:51:12 +01:00
Uwe Steinmann
8af798fe86 views instead of temp. tables can be used 2017-11-21 11:28:49 +01:00
Uwe Steinmann
b29f7b1e9c add method getParent() 2017-11-21 11:28:18 +01:00
Uwe Steinmann
b6ce91c8ee fix validation return value 2017-11-21 11:27:17 +01:00
Jörg Neugebauer
fd5f341cb9 SeedDMS_Core 2017-11-08 13:54:49 +01:00
Uwe Steinmann
4410868874 started new version 5.1.5 2017-11-07 06:43:25 +01:00
Jörg Neugebauer
3f2e24f80d inc.ClassFolder.php 2017-10-28 14:28:12 +02:00
Uwe Steinmann
3d6dcbd181 take out duplicate getLatestContent() 2017-10-27 16:47:50 +02:00
Uwe Steinmann
68ccb13a72 add 'ExpiredOwner' to getDocumentList() 2017-10-27 16:47:09 +02:00
Uwe Steinmann
5149511aaa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-10-27 15:01:18 +02:00
Jörg Neugebauer
ab73fe5298 inc.ClassDMS.php 2017-10-24 14:00:56 +02:00
Jörg Neugebauer
e1fc45b69a inc.ClassDMS.php 2017-10-24 13:36:07 +02:00
Jörg Neugebauer
61382afc7b inc.ClassAttribute.php 2017-10-24 12:44:22 +02:00
Jörg Neugebauer
2ab5db0c6d inc.ClassObject.php 2017-10-24 12:12:38 +02:00
Jörg Neugebauer
b34b936b24 Einfügen DocBlock 2017-10-24 11:53:31 +02:00
Jörg Neugebauer
db678e08da Einfügen DocBlock 2017-10-24 11:10:41 +02:00
Uwe Steinmann
f3ee2d495c Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-10-06 18:08:35 +02:00
Uwe Steinmann
5bf132b170 add virtual access mode for links and attachments 2017-10-06 17:58:46 +02:00
Uwe Steinmann
89eeb98d82 add new method getDocumentsExpired() 2017-10-06 17:58:13 +02:00
Uwe Steinmann
0b8b92076a remove linked files of a version if the version is deleted 2017-10-05 07:37:21 +02:00
Uwe Steinmann
f3d4b86bae remove unused revisionDate in SeedDMS_Core_DocumentFile 2017-09-28 07:27:43 +02:00
Uwe Steinmann
22dce2fdf1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-09-28 07:26:49 +02:00
Uwe Steinmann
f1f439af8c add support for access restrictions on document content 2017-09-28 07:23:15 +02:00
Uwe Steinmann
031887de0a add var noReadForStatus and method getLoggedInUser() 2017-09-28 07:21:08 +02:00
Uwe Steinmann
d5f79f5f7c various small improvements back ported from 6.0.x 2017-09-27 18:36:59 +02:00
Uwe Steinmann
2c1374bea5 take out echo 2017-09-27 06:20:48 +02:00
Uwe Steinmann
4c5dc52fa0 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-09-05 09:35:23 +02:00
Uwe Steinmann
4ba5db88e9 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-09-05 09:32:03 +02:00
Uwe Steinmann
45d0c2618f start new version 4.3.37 2017-09-05 09:27:55 +02:00
Uwe Steinmann
f1b502b2f2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-29 06:21:53 +02:00
Uwe Steinmann
14a10eaf22 add method getDocumentByOriginalFilename() 2017-08-28 13:44:42 +02:00
Uwe Steinmann
81b153ccd5 add removal of receipts and revisions for users/group no longer available 2017-08-22 18:00:06 +02:00
Uwe Steinmann
01fb6feeca Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-22 06:24:59 +02:00
Uwe Steinmann
2e26504ae7 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-08-22 06:22:28 +02:00
Uwe Steinmann
c68c8b5e52 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-08-22 06:22:16 +02:00
Uwe Steinmann
e53beb45f4 add comment in removeProcessWithoutUserGroup() 2017-08-03 21:48:55 +02:00
Uwe Steinmann
c5a67c2aeb initial version of removeProcessWithoutUserGroup() 2017-08-03 21:41:03 +02:00
Uwe Steinmann
f181ca044d ReceiveOwner list does not contain old versions anymore 2017-08-03 12:42:56 +02:00
Uwe Steinmann
d82f8c44d1 add receipts and revisions in getProcessWithoutUserGroup() 2017-08-03 07:11:25 +02:00
Uwe Steinmann
e878f438fd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-02 18:03:44 +02:00
Uwe Steinmann
50e969452c Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-08-02 17:41:04 +02:00
Uwe Steinmann
141895b80d quote names in sql statements of getProcessesWithoutUserGroup() 2017-08-02 17:40:27 +02:00
Uwe Steinmann
d0b9084ad6 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-08-02 17:32:12 +02:00
Uwe Steinmann
098f15202c add method getProcessWithoutUserGroup()
checks for reviews/approvals which have lost its user or group
2017-08-02 17:30:54 +02:00
Uwe Steinmann
5396829d7f take out echos 2017-07-31 14:23:16 +02:00
Uwe Steinmann
7b5412ff36 remove from process only if status[receipt], status[revision] is not set 2017-07-31 14:21:24 +02:00
Uwe Steinmann
596cb2afd6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 14:18:18 +02:00
Uwe Steinmann
2a4b8ffcfc remove from process only if status[review], status[approval] is not set 2017-07-31 14:17:41 +02:00
Uwe Steinmann
07d760d7d8 fix remove from process for receipts and revisions 2017-07-31 14:13:02 +02:00
Uwe Steinmann
014b7ac201 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 13:22:28 +02:00
Uwe Steinmann
c32bff5074 separate removal of reviews and approval 2017-07-31 13:21:01 +02:00
Uwe Steinmann
114a8a3ac1 move code in remove() into __removeFromProcesses() 2017-07-31 11:54:24 +02:00
Uwe Steinmann
afefe1d66c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 11:49:43 +02:00
Uwe Steinmann
58ddbca857 add new methods transferDocumentsFolders() transferEvents() 2017-07-31 11:25:33 +02:00
Uwe Steinmann
a2802f124d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 18:25:49 +02:00
Uwe Steinmann
a0600573dc add methods isMandatoryReviewerOf() and isMandatoryApproverOf() 2017-07-28 18:22:53 +02:00
Uwe Steinmann
e953d9dcbb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 15:12:00 +02:00
Uwe Steinmann
d0ab0d0f9f add option parameter $states to __removeFromProcesses()
restricts removal to certain approval/review states
2017-07-28 14:56:18 +02:00
Uwe Steinmann
cb17de44fc getNotifyList() returns only users which are not disabled 2017-07-28 10:28:57 +02:00
Uwe Steinmann
378e071232 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 10:25:54 +02:00
Uwe Steinmann
d55d266731 add new methods to SeedDMS_Core_User
removeFromProcesses(), getWorkflowsInvolved(), getKeywordCategories()
2017-07-28 09:35:12 +02:00
Uwe Steinmann
29bc0c1fda getNotifyList() returns only users which are not disabled 2017-07-27 22:10:44 +02:00
Uwe Steinmann
268d844b43 fix some comments 2017-07-27 21:17:58 +02:00
Uwe Steinmann
c953d02604 views instead of temp. tables can be used
This speeds up many sql statements for mysql and pgsql
2017-07-27 12:34:46 +02:00
Uwe Steinmann
f5333e7c8d fix field name in getDocumentList(), 'maxLogId' must be 'maxLogID'
otherwise the statement fails for pgsql
2017-07-27 12:32:27 +02:00
Uwe Steinmann
752f4e8760 take out order by in temp. tables 2017-07-26 12:14:56 +02:00
Uwe Steinmann
d954b4df1d getReverseSubstitutes() works with roles 2017-07-21 14:41:39 +02:00
Uwe Steinmann
37e03e2e9e SeedDMS_Core_Document::checkForDueRevisionWorkflow() also checks if there are any waiting or pending revisions at all 2017-07-21 11:48:01 +02:00
Uwe Steinmann
bbad479580 use define S_LOG_USER_REMOVED 2017-07-20 18:21:05 +02:00
Uwe Steinmann
a5688a7c3b turn on new sql statements in getDocumentList() 2017-07-18 13:35:01 +02:00
Uwe Steinmann
a8a939cb3d Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-07-17 17:59:56 +02:00
Uwe Steinmann
9ea079d580 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-07-17 17:58:46 +02:00
Uwe Steinmann
de6564c7e9 fix sql statement for creating temp. tables ttreviewid and ttapproveid 2017-07-17 17:57:01 +02:00
Uwe Steinmann
3fd1dfe87a fix sql for creating temp table ttreviewid and ttapproveid 2017-07-17 17:52:19 +02:00
Uwe Steinmann
3213aa168f more efficient sql code in getDocumentList() 2017-07-17 17:51:38 +02:00
Uwe Steinmann
a0651239dd Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-07-13 18:03:15 +02:00
Uwe Steinmann
e029e8e55a Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-07-13 17:56:31 +02:00
Uwe Steinmann
b43200703b start new version 4.3.36 2017-07-11 18:12:31 +02:00
Uwe Steinmann
99682a11d1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-10 07:50:33 +02:00
Uwe Steinmann
1249d069c7 add note on deprecated $noReadForStatus 2017-07-05 10:47:23 +02:00
Uwe Steinmann
0e2b8df36b fix sql statement to create temp table ttrevisionid and ttreceiptid 2017-07-05 10:45:12 +02:00
Uwe Steinmann
1326f825d3 $dms->noReadForStatus no longer needed
SeedDMS_Core_DocumentContent::getAccessMode() retrieves the role based
access restrictions from the role of the given user
2017-07-05 10:43:14 +02:00
Uwe Steinmann
8531371f67 also take out ORDER BY in temp. tables for pgsql driver 2017-06-28 15:29:17 +02:00
Uwe Steinmann
1db5675990 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-06-28 15:27:50 +02:00
Uwe Steinmann
4a590ef8e4 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-06-28 15:11:29 +02:00
Uwe Steinmann
a2fc405eae do not sort some temp. tables anymore
it causes an error if sql_mode=only_full_group_by is set in mysql
2017-06-28 14:59:29 +02:00
Uwe Steinmann
2471aab8cc check for callback onAttributeValidate 2017-06-27 17:06:32 +02:00
Uwe Steinmann
919f4cb39c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-06-26 10:20:48 +02:00
Uwe Steinmann
93380ab261 add hook on(Pre|Post)RemoveContent 2017-06-24 07:15:37 +02:00
Uwe Steinmann
440c7032f0 add method getDocumentList(), limit number of duplicate contents to 1000 2017-05-12 18:08:56 +02:00
Uwe Steinmann
092967004a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-05-12 08:23:42 +02:00
Uwe Steinmann
3c9c0b7e3a check if onPreRemove[Document|Folder] returns bool or null 2017-05-12 08:16:05 +02:00
Uwe Steinmann
3cc572a1cd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-05-02 06:47:42 +02:00
Uwe Steinmann
d55236f49d SeedDMS_Core_DMS::filterDocumentFiles() returns file if author of doc 2017-04-24 16:47:57 +02:00
Uwe Steinmann
3a615b6e06 optimize sql code to get locked documents 2017-03-24 13:29:00 +01:00
Uwe Steinmann
72c5bd237b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-23 18:48:45 +01:00
Uwe Steinmann
6a7e23375c Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-03-23 18:08:23 +01:00
Uwe Steinmann
a001d32854 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-03-23 17:43:39 +01:00
Uwe Steinmann
4265c965de log all sql statements into file if log file is given 2017-03-23 17:27:31 +01:00
Uwe Steinmann
6bb6662de4 start new version 4.3.35 2017-03-23 15:39:18 +01:00
Uwe Steinmann
c18f09d344 start new version 6.0.1 2017-03-23 15:22:55 +01:00
Uwe Steinmann
050a2e60df remove some debug echos 2017-03-23 07:07:57 +01:00
Uwe Steinmann
43b613c210 add method rewriteRevisionLog() 2017-03-09 11:33:09 +01:00
Uwe Steinmann
ee4215f89e rewriteReceiptLog() can handle none exiting users 2017-03-09 11:14:31 +01:00
Uwe Steinmann
0cfd663275 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-09 11:09:49 +01:00
Uwe Steinmann
2fca40953d Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-03-09 11:09:34 +01:00
Uwe Steinmann
233111e818 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-03-09 11:09:23 +01:00
Uwe Steinmann
2e99b1ba38 rewrite...Log() can handle entries with none exiting users 2017-03-09 11:07:40 +01:00
Uwe Steinmann
3853f0010f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-08 13:17:29 +01:00
Uwe Steinmann
4c6ce8218a Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-03-08 11:34:17 +01:00
Uwe Steinmann
a528a3ce57 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-03-08 11:33:05 +01:00
Uwe Steinmann
711520234d retrieve complete document when checking for duplicates 2017-03-08 11:08:35 +01:00
Uwe Steinmann
b05a7f2ba5 add method rewriteReceiptLog() 2017-03-03 22:07:15 +01:00
Uwe Steinmann
e9c029e8fc fix syntax error 2017-02-28 17:12:27 +01:00
Uwe Steinmann
6e9b840e45 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-28 17:06:58 +01:00
Uwe Steinmann
c32a2e7f53 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-28 09:19:11 +01:00
Uwe Steinmann
310ebf8708 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-02-28 09:19:01 +01:00
Uwe Steinmann
4cc7bfca20 make sql state more compatible across databases 2017-02-28 09:17:25 +01:00
Uwe Steinmann
5cf7611304 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-28 09:10:27 +01:00
Uwe Steinmann
c7fbcb80c8 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-02-28 09:10:14 +01:00
Uwe Steinmann
b6d63b8705 make LIMIT in sql more database independent 2017-02-28 09:08:20 +01:00
Uwe Steinmann
3635b92edb fix sql for add user when pwdexpiration has a date 2017-02-28 08:00:45 +01:00
Uwe Steinmann
5bca4770d1 start new version 5.0.11 2017-02-28 07:09:30 +01:00
Uwe Steinmann
c3fea8b8bf new version 4.3.34 2017-02-28 06:39:32 +01:00
Uwe Steinmann
eab6552788 start new version 5.1.1 2017-02-28 06:35:36 +01:00
Uwe Steinmann
fea676c1d4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-24 19:07:23 +01:00
Uwe Steinmann
c6567b2f90 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-24 13:49:37 +01:00
Uwe Steinmann
b9a7f622d1 remove backticks in sql statement
for some strange reason a select `document` ... UNION select `document`
will result in a php array where '`document`' and not 'document' is
the key. This makes getTimeline() fail.
2017-02-24 13:46:58 +01:00
Uwe Steinmann
473118b7bb new version 4.3.33 2017-02-22 11:31:59 +01:00
Uwe Steinmann
09ef3a86ba new version 5.0.10 2017-02-20 17:43:51 +01:00
Uwe Steinmann
fa5721c2cb Merge branch 'seeddms-6.0.x-postgres' into seeddms-6.0.x 2017-02-20 17:38:35 +01:00
Uwe Steinmann
4c794381e6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-20 17:34:43 +01:00
Uwe Steinmann
283c51b193 print_r detailed error msg 2017-02-20 17:11:37 +01:00
Uwe Steinmann
a18b3c6879 add sql statement for pgsql in TableList() 2017-02-20 17:11:37 +01:00
Uwe Steinmann
bfbd845bab add sql code for creating temp tables ttreceiptid and ttrevisionid 2017-02-20 17:11:37 +01:00
Uwe Steinmann
50919f40c1 add sql for creating temp tables ttreviewid and ttapproveid 2017-02-20 17:11:37 +01:00
Uwe Steinmann
1a03adebbd add create of temp table ttstatid 2017-02-20 17:11:37 +01:00
Uwe Steinmann
2c775b560f add creation of temp table ttcontentid 2017-02-20 17:11:37 +01:00
Uwe Steinmann
7467df155d fix getInsertID() for identifier in upper/lower case 2017-02-20 17:11:37 +01:00
Uwe Steinmann
cafdd457c8 pass tablename to getInsertID() 2017-02-20 17:11:37 +01:00
Uwe Steinmann
0239edd4ee adjust date function to postgresql 2017-02-20 17:11:37 +01:00
Uwe Steinmann
c55b595ae9 pass tablename to getInsertID(), add pgsql as new db driver 2017-02-20 17:11:37 +01:00
Uwe Steinmann
52deebbf6e Merge branch 'seeddms-5.0.x-attachment' into seeddms-5.1.x 2017-02-20 15:37:44 +01:00
Uwe Steinmann
19f77a37c8 add missing changes which got lost during last rebase 2017-02-20 15:33:15 +01:00
Uwe Steinmann
606effb759 fix sql to retrieve attachments 2017-02-20 15:24:06 +01:00