Commit Graph

193 Commits

Author SHA1 Message Date
Uwe Steinmann
0260b8dad9 init categories in getCategories() 2021-09-30 15:44:54 +02:00
Uwe Steinmann
7e17ea145c set strict_types 2021-09-29 17:24:30 +02:00
Uwe Steinmann
2b1f637e9c adding a review returns the log id not 0 2021-09-29 17:23:59 +02:00
Uwe Steinmann
989572e069 return false not -1 if sql fails 2021-09-29 17:23:03 +02:00
Uwe Steinmann
b9fb7e2585 fix indenting 2021-09-29 17:21:58 +02:00
Uwe Steinmann
335c2ffee5 more documentation, better parameter checking, return false is sql fails 2021-09-29 17:21:19 +02:00
Uwe Steinmann
7366644d19 ensure strict types 2021-09-29 17:16:33 +02:00
Uwe Steinmann
43e98643ee verifyStatus() returns new status (or old status if not changed) 2021-09-29 14:55:55 +02:00
Uwe Steinmann
007e3faa0a various minor changes ported back from SeedDMS 6 2021-09-28 16:20:33 +02:00
Uwe Steinmann
0f5b189838 pass document itself to callback onPostRemoveDocument 2021-09-24 10:16:25 +02:00
Uwe Steinmann
233e464692 addDocumentFiles() clears internal list, make removeDocumentFile() more robust 2021-09-24 10:15:06 +02:00
Uwe Steinmann
08887fcbd9 just added some spaces in parameter list 2021-09-24 10:14:19 +02:00
Uwe Steinmann
efa85c70a0 fix documentation of getDocumentFiles() 2021-09-24 10:12:51 +02:00
Uwe Steinmann
7a606ca1fb much better checking of passed parameters in addDocumentLink() 2021-09-24 10:12:05 +02:00
Uwe Steinmann
77de9bfaae better documentation of getReverseDocumentLinks() and getDocumentLinks() 2021-09-24 10:11:13 +02:00
Uwe Steinmann
2f9148e5b9 method which return content will return null if no content was found
false is only returned if an error occured
2021-09-24 10:09:13 +02:00
Uwe Steinmann
01e243e966 fix indenting of comment for method getContentByVersion() 2021-09-24 10:07:18 +02:00
Uwe Steinmann
2c7b7344dd check paramert $mode of addAccess() has valid value 2021-09-24 10:06:41 +02:00
Uwe Steinmann
85f838b354 remove old unused code 2021-09-24 10:05:59 +02:00
Uwe Steinmann
ada7c1d692 add method clearCache() 2021-09-24 10:05:00 +02:00
Uwe Steinmann
7ed1a83453 check if $user, $requestUser is passed to addIndReviewer() addIndApprover() 2021-09-20 16:33:25 +02:00
Uwe Steinmann
69e3ad87f9 add note in comment about a possible wrong check for a return value 2021-09-20 16:32:34 +02:00
Uwe Steinmann
33c10fc1db add some documentation in comments 2021-08-30 19:34:38 +02:00
Uwe Steinmann
fa8356d729 in removeWorkflow() remove records from tblWorkflowLog before tblWorkflowDocumentContent 2021-08-20 10:38:33 +02:00
Uwe Steinmann
2c4dc73be3 add new method removeApproval() 2021-07-02 08:32:18 +02:00
Uwe Steinmann
0cd9910c25 add new method SeedDMS_Core_DocumentContent::removeReview() 2021-07-01 11:44:49 +02:00
Uwe Steinmann
bc50f2f8b6 add new method SeedDMS_Core_Document::hasCategory() 2021-06-25 09:34:54 +02:00
Uwe Steinmann
b624cd0a61 fix getWorkflowState(), can now handle empty state 2021-06-01 10:48:52 +02:00
Uwe Steinmann
24be00ccd1 add methods getApproveLog() and getReviewLog() 2021-05-19 20:40:45 +02:00
Uwe Steinmann
e5159ca7f9 add methods SeedDMS_Core_DocumentContent::getReviewers() and SeedDMS_Core_DocumentContent::getApprovers() 2021-05-14 21:54:34 +02:00
Uwe Steinmann
4d8da1a7bb smarter caching in SeedDMS_Core_Document::getDocumentFiles() 2021-03-17 08:07:45 +01:00
Uwe Steinmann
29cf87d85d fix SeedDMS_Core_Document::remove when version had its own attachments 2021-03-16 19:13:37 +01:00
Uwe Steinmann
4724935bec cast access mode to int when passing to constructor of SeedDMS_Core_GroupAccess or SeedDMS_Core_UserAccess 2021-02-02 14:56:15 +01:00
Uwe Steinmann
d5629361da fixed wrong parameter description 2021-01-27 09:55:11 +01:00
Uwe Steinmann
144d35849b check if attr def exists when setting attribute value 2020-12-28 08:14:05 +01:00
Uwe Steinmann
68ae8c17a5 check if folder/document is below rootDir can be turned on (default off) 2020-12-16 16:47:49 +01:00
Uwe Steinmann
f02e0ca977 add more documentation 2020-12-12 16:26:21 +01:00
Uwe Steinmann
ab464b633d pass update user to callback onSetStatus 2020-09-23 15:56:29 +02:00
Uwe Steinmann
999f4f76c9 removing a document version will not remove attachments of the document anymore 2020-09-17 09:26:08 +02:00
Uwe Steinmann
b083ebb40e add new method SeedDMS_Core_Document::isLatestContent() 2020-08-21 13:19:22 +02:00
Uwe Steinmann
990621ae99 invalidate list of versions after removing a version 2020-08-21 12:34:35 +02:00
Uwe Steinmann
328b1b2b1a add method setParent() as an alias for setFolder() 2020-08-05 18:41:53 +02:00
Uwe Steinmann
98945e57df cast id to int 2020-06-24 16:14:58 +02:00
Uwe Steinmann
3cf091099b fix many remaining todos (moѕtly wrong var names) 2020-06-05 18:06:27 +02:00
Uwe Steinmann
a4b84f5558 add docs for hasExpired(), doc expires with the first second of the next 2020-05-27 12:01:40 +02:00
Uwe Steinmann
35afca7996 rename callback onUpdateStatusDocumentContent to onSetStatus 2020-05-15 08:20:37 +02:00
Uwe Steinmann
7343108914 add new callback onChangeStatusDocumentContent 2020-05-14 19:05:01 +02:00
Uwe Steinmann
4021d62cb3 better error handling in addDocumentFile() 2020-04-14 17:06:38 +02:00
Uwe Steinmann
c6924de065 init $lasterror before calling hook 2020-03-25 08:05:41 +01:00
Uwe Steinmann
80ca2a7174 remove debug echo 2020-02-13 13:25:35 +01:00