Commit Graph

882 Commits

Author SHA1 Message Date
Uwe Steinmann
9687c8f081 check if user passed to setUser() is a real user 2021-09-17 18:25:23 +02:00
Uwe Steinmann
0cd4c9b727 check if the folder set by setRootFolderID() actually exists 2021-09-17 18:24:32 +02:00
Uwe Steinmann
ffd5cd9a7b use upper case in sql statements for reserved words 2021-09-17 18:23:25 +02:00
Uwe Steinmann
9309497e75 init $user to null in constructor 2021-09-17 18:22:35 +02:00
Uwe Steinmann
f9afc08355 add more documentation 2021-09-17 18:21:57 +02:00
Uwe Steinmann
16da190e06 setRegex() checks regex only if not '' 2021-09-16 17:10:41 +02:00
Uwe Steinmann
a7e2ec7b01 ensure isHidden and isDisabled is a boolean 2021-09-16 16:18:26 +02:00
Uwe Steinmann
adba550a63 minor simplification of sql statement 2021-09-16 16:17:24 +02:00
Uwe Steinmann
1d031e44a2 return null not false if getInstanceByName() didn't find a folder 2021-09-16 16:16:21 +02:00
Uwe Steinmann
95b4bb9d22 init value set, separator, trim value set in setValue() 2021-09-16 16:14:51 +02:00
Uwe Steinmann
4aa4556df8 add more documentation 2021-09-16 16:14:21 +02:00
Uwe Steinmann
32dda4b3e9 return ',' as separator for most attr types, if value map is not set 2021-09-16 16:12:54 +02:00
Uwe Steinmann
c50be6d215 init separator and validation error in constructor 2021-09-16 16:12:27 +02:00
Uwe Steinmann
ffe4b50c7f many value validation improvements, use constants for validation errors 2021-09-16 16:11:13 +02:00
Uwe Steinmann
cd1800c19d add docs for var $separator 2021-09-16 16:09:18 +02:00
Uwe Steinmann
90074c3947 fix get value map separator 2021-09-16 16:07:31 +02:00
Uwe Steinmann
b0d13f9518 replace array_search by in_array, makeTimestamp() returns an error if days > max days of month 2021-09-16 16:05:04 +02:00
Uwe Steinmann
ad52fffd21 set file format to unix, fix indenting of comments 2021-09-16 16:02:16 +02:00
Uwe Steinmann
b111c1428e remove old database file unused for a long time 2021-09-15 21:49:44 +02:00
Uwe Steinmann
9334e1a6f2 make all class variables of SeedDMS_Core_User protected 2021-09-13 10:15:33 +02:00
Uwe Steinmann
fe71cf92b3 move old tests out of the way 2021-09-13 09:09:41 +02:00
Uwe Steinmann
33c10fc1db add some documentation in comments 2021-08-30 19:34:38 +02:00
Uwe Steinmann
160f427bea start new version 5.1.24 2021-08-20 10:42:26 +02:00
Uwe Steinmann
fa8356d729 in removeWorkflow() remove records from tblWorkflowLog before tblWorkflowDocumentContent 2021-08-20 10:38:33 +02:00
Uwe Steinmann
a4fb4230e8 add login to key when getting statistics for 'sizeperuser' 2021-08-18 12:21:48 +02:00
Uwe Steinmann
62d9241276 catch exeption when opening database connection 2021-08-05 08:40:13 +02:00
Uwe Steinmann
cd9d1fe25f fix hard coded version number 2021-08-05 08:39:39 +02:00
Uwe Steinmann
39eda2a180 add method concat() and use it in getStatistics() for docspersuser and foldersperuser 2021-07-11 20:41:53 +02:00
Uwe Steinmann
c889e075f7 add notes for 5.1.23 2021-07-09 14:23:31 +02:00
Uwe Steinmann
d955f07b7a new methods getFolders(), getDocumentLinks(), getDocumentFiles(), getDocumentContents() 2021-07-09 14:22:11 +02:00
Uwe Steinmann
14b1cd34cd new type foldersperuser in getStatisticalData() 2021-07-09 14:21:52 +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
8eb5882520 revert to regex for email validation 2021-06-29 10:20:31 +02:00
Uwe Steinmann
bc50f2f8b6 add new method SeedDMS_Core_Document::hasCategory() 2021-06-25 09:34:54 +02:00
Uwe Steinmann
369497ee3a fix validation of emails 2021-06-21 18:09:59 +02:00
Uwe Steinmann
1ef9e60297 add note for 5.1.23 2021-06-01 10:50:28 +02:00
Uwe Steinmann
116bf3d5dd getNextTransitions() returns false if passed state is empty 2021-06-01 10:49:32 +02:00
Uwe Steinmann
b624cd0a61 fix getWorkflowState(), can now handle empty state 2021-06-01 10:48:52 +02:00
Uwe Steinmann
9ed96e2a2a init $statusstartdate and $statusenddate in search() 2021-05-21 08:51:08 +02:00
Uwe Steinmann
8de5b0ab15 add notes for 5.1.23 2021-05-19 20:44:37 +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
3029bb195e SeedDMS_Core_DMS::getTimeline() uses status log instead of document content 2021-05-07 11:45:06 +02:00
Uwe Steinmann
68b307cf34 add missing notes for 5.1.23 2021-04-21 08:52:37 +02:00
Uwe Steinmann
5efc5802b7 start version 5.1.23 2021-04-13 08:39:07 +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
b103d9f30d SeedDMS_Core_DMS::search() support searching for date of last document status change 2021-03-15 16:07:57 +01:00
Uwe Steinmann
66917cd156 add support for date range search for attributes of type 'date' 2021-03-12 10:05:17 +01:00
Uwe Steinmann
34c81e7220 add note for 5.1.22 2021-03-06 15:27:17 +01:00
Uwe Steinmann
3acd9a2237 add some comments 2021-03-06 15:27:03 +01:00
Uwe Steinmann
ceed62bf2b do not validate value in SeedDMS_Core_Attribute::setValue(), it should have been done before 2021-03-06 15:26:18 +01:00
Uwe Steinmann
03ef93df2c add parameter $incdisabled to SeedDMS_Core_Folder::getNotifyList() 2021-02-05 13:25:46 +01:00
Uwe Steinmann
4e5139616c add new parameter to SeedDMS_Core_DMS->getDocumentList() for skipping expired documents 2021-02-04 12:25:22 +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
8aa7662f31 add SeedDMS_Core_User->isType() and SeedDMS_Core_Group->isType() 2021-01-29 10:33:09 +01:00
Uwe Steinmann
32ca8ccae3 add method getDMS() to class SeedDMS_Core_User and SeedDMS_Core_Group 2021-01-28 21:05:52 +01:00
Uwe Steinmann
52a8f2d268 update release date 2021-01-27 16:27:53 +01:00
Uwe Steinmann
d5629361da fixed wrong parameter description 2021-01-27 09:55:11 +01:00
Uwe Steinmann
323e3c49ae start new version 5.1.22 2021-01-04 21:45:55 +01:00
Uwe Steinmann
40adb027db new method hasTable(), beautify some sql statements 2021-01-04 21:45:16 +01:00
Uwe Steinmann
144d35849b check if attr def exists when setting attribute value 2020-12-28 08:14:05 +01:00
Uwe Steinmann
ead4ad45e7 fix clearing home folder of user 2020-12-18 10:05:04 +01:00
Uwe Steinmann
9c97564cb4 use $dms->getDocument() in function for checking objects 2020-12-18 07:51:13 +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
6e46e95702 pass current object and $new to validate() 2020-12-14 18:46:38 +01:00
Uwe Steinmann
55e0204054 new parameter 'new' of SeedDMS_Core_AttributeDefinition::validate() 2020-12-14 18:16:35 +01:00
Uwe Steinmann
c4cdf7b92e add method getDMS() 2020-12-14 17:20:06 +01:00
Uwe Steinmann
ec5a17f4f3 pass attribute value to callback 'onAttributeValidate' 2020-12-14 14:32:40 +01:00
Uwe Steinmann
f2c376cadc sync call of getReadAccessList() with SeedDMS_Core_Document::getReadAccessList() 2020-12-12 16:27:01 +01:00
Uwe Steinmann
f02e0ca977 add more documentation 2020-12-12 16:26:21 +01:00
Uwe Steinmann
d867e5d0b8 SeedDMS_Folder_DMS::getAccessList() and getDefaultAccess() do not return fals anymore if the parent does not exists. They just stop inheritance. 2020-10-03 10:18:04 +02:00
Uwe Steinmann
73b957281f start version 5.1.21 2020-09-29 16:37:50 +02:00
Uwe Steinmann
dc33ad774a update release date, fix typo 2020-09-29 13:45:50 +02:00
Uwe Steinmann
ab464b633d pass update user to callback onSetStatus 2020-09-23 15:56:29 +02:00
Uwe Steinmann
ad9afab6e0 set dms of user instances 2020-09-23 11:39:00 +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
a75fe94d95 add notes for 5.1.20 2020-09-03 20:10:41 +02:00
Uwe Steinmann
1ffcfdeb81 getDocumentList() returns false, if an unknown list passed 2020-09-03 20:09:41 +02:00
Uwe Steinmann
fef827a7db start new version 5.1.20 2020-09-03 14:17:23 +02:00
Uwe Steinmann
dd94bb0bae fix searching within attributes of document contents 2020-09-01 14:59:50 +02:00
Uwe Steinmann
ce2ee995fc getValueSetSeparator() returns ',' for type_user and type_group 2020-09-01 14:59:16 +02:00
Uwe Steinmann
051fac8281 add validation and parsing of new types (user, group, etc.) 2020-09-01 09:22:48 +02:00
Uwe Steinmann
9117f8f64a add new attribute types 'document', 'folder', 'user', 'group' 2020-08-28 11:45:37 +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
d705ff4618 notes for 5.1.19 2020-08-05 18:42:22 +02:00
Uwe Steinmann
328b1b2b1a add method setParent() as an alias for setFolder() 2020-08-05 18:41:53 +02:00
Uwe Steinmann
7c2959be02 add fold marks 2020-08-01 13:47:24 +02:00
Uwe Steinmann
245e54f893 some additional documentation for getDocumentByName() 2020-07-28 18:12:13 +02:00
Uwe Steinmann
a605ba6c67 start new version 5.1.19 2020-07-28 11:54:57 +02:00
Uwe Steinmann
51b1a476bf cast id to integer 2020-06-24 16:15:13 +02:00
Uwe Steinmann
98945e57df cast id to int 2020-06-24 16:14:58 +02:00
Uwe Steinmann
ac1ea2d58e add note for 5.1.18 2020-06-23 09:59:57 +02:00
Uwe Steinmann
a68f644ba5 create temp table ttcontentid in getDocumentByOriginalFilename() 2020-06-23 09:58:38 +02:00
Uwe Steinmann
ba91151cea add note for 5.1.18 2020-06-19 11:38:52 +02:00
Uwe Steinmann
f817fc4489 fix parsing of file size 2020-06-19 11:36:51 +02:00
Uwe Steinmann
3cf091099b fix many remaining todos (moѕtly wrong var names) 2020-06-05 18:06:27 +02:00
Uwe Steinmann
e1a6497b05 start new version 5.1.18 2020-05-28 12:49:53 +02:00
Uwe Steinmann
c70f1cc6f8 start new version 5.1.18 2020-05-28 11:51:55 +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
f737b20830 add new parameter and documentation for getDocumentsExpired() 2020-05-27 12:00:58 +02:00
Uwe Steinmann
973f7eea65 update release date 2020-05-22 16:30:23 +02:00
Uwe Steinmann
8548765ef8 add note for 5.1.17 2020-05-22 16:27:58 +02:00
Uwe Steinmann
dd146a6f5e fix getDocumentsExpired(), need to create temp tables 2020-05-22 16:25:50 +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
d0259109e1 rework getDocumentList()
WorkflowByMe just returns those documents which still need action.
propperly handle $param1 = null
2020-05-08 07:40:04 +02:00
Uwe Steinmann
d1b3b00815 add notes for 5.1.16 2020-04-14 18:02:19 +02:00
Uwe Steinmann
4021d62cb3 better error handling in addDocumentFile() 2020-04-14 17:06:38 +02:00
Uwe Steinmann
a2cb94cbe8 new notes for 5.1.16 2020-03-25 08:10:13 +01:00
Uwe Steinmann
c6924de065 init $lasterror before calling hook 2020-03-25 08:05:41 +01:00
Uwe Steinmann
c6f85fc6e9 fix call of hooks, add new variable 'lasterror' 2020-03-25 08:04:39 +01:00
Uwe Steinmann
92b291d4d2 start new version 5.1.16 2020-03-04 18:16:40 +01:00
Uwe Steinmann
25b979d9ef start new version 5.1.16 2020-03-04 17:51:25 +01:00
Uwe Steinmann
e543f100d5 update release date and notes 2020-03-02 09:43:39 +01:00
Uwe Steinmann
6bf6a4b582 start new version 5.1.15 2020-02-17 12:57:48 +01:00
Uwe Steinmann
4b402a131f update release date 2020-02-17 10:21:01 +01:00
Uwe Steinmann
80ca2a7174 remove debug echo 2020-02-13 13:25:35 +01:00
Uwe Steinmann
30ca5c71cd new method SeedDMS_Document_Content::repair, restore old getPath() behaviour
getPath() didn't return a single '.' in the fileType
2020-02-11 07:45:30 +01:00
Uwe Steinmann
2b685a835e include new Iterator class 2020-02-06 11:34:42 +01:00
Uwe Steinmann
23b994ac23 add new Iterator class
not used yet
2020-02-06 11:34:08 +01:00
Uwe Steinmann
699152d95b use getDMS() instead of accessing _dms 2020-01-10 14:48:14 +01:00
Uwe Steinmann
61f1ddbd08 minimize number of sql statements
add new method getInstanceByData(), get folders and documents from
first sql statement which fetches the subfolders and documents of
a folder instead of fetching each single document and folder.
2019-12-13 09:03:44 +01:00
Uwe Steinmann
c06ec0de2e more documentation in SeedDMS_Core_DocumentContent::verifyStatus() 2019-10-17 07:40:01 +02:00
Uwe Steinmann
d1a8546f1f fix comment 2019-10-17 07:18:51 +02:00
Uwe Steinmann
f2e7063a56 better documentation of SeedDMS_Core_DocumentContent::verifyStatus 2019-10-17 07:09:08 +02:00
Uwe Steinmann
ae4a65e8bc discard fileType if just '.' 2019-10-01 14:05:29 +02:00
Uwe Steinmann
712a504d9b remove debug output 2019-08-27 14:13:03 +02:00
Uwe Steinmann
f378aeb013 add new file class.Decorator.php 2019-08-08 15:49:08 +02:00
Uwe Steinmann
4767bf69d0 new version 5.1.13 2019-08-08 09:37:33 +02:00
Uwe Steinmann
078847ab9b fix line indenting 2019-08-08 09:04:58 +02:00
Uwe Steinmann
851ca7013b start new version 5.1.13 2019-08-08 09:00:12 +02:00
Uwe Steinmann
99238a34f4 run decorators, new method isType(), use $this instead of self:: 2019-08-08 08:43:20 +02:00
Uwe Steinmann
f9eabdb252 run decorators, new method isType(), do not access variable _dms anymore 2019-08-08 08:42:02 +02:00
Uwe Steinmann
cebf0e3796 add generic decorator class 2019-08-08 08:41:12 +02:00
Uwe Steinmann
9a0b6c4d3d add methods for setting and getting decorators 2019-08-08 08:39:53 +02:00
Uwe Steinmann
4a7d572f95 add method isType(), make functions explicitly public 2019-08-07 08:10:05 +02:00
Uwe Steinmann
ba9f4ba749 rename SeedDMS_Core_Folder::empty to emptyFolder 2019-07-17 10:50:52 +02:00
Uwe Steinmann
e71c9c2e4e fix sql statement for searching when setting a limit 2019-07-16 20:16:50 +02:00
Uwe Steinmann
c5e6131c14 use getVersion() instead of accessing _version which is now protected 2019-07-12 16:39:44 +02:00
Uwe Steinmann
d11887311c declare variables in SeedDMS_Core_DocumentContent 2019-07-11 17:14:56 +02:00
Uwe Steinmann
c9d9bf6c7b new function and controller for emptying a folder 2019-07-02 08:47:12 +02:00
Uwe Steinmann
d18a3389bc sіmplify and possibly fix method isDescendant() 2019-07-01 13:06:08 +02:00
Uwe Steinmann
536067200e add method isDescendant() 2019-07-01 13:05:40 +02:00
Uwe Steinmann
e9d5381aa6 more notes for 5.1.12, update release date 2019-07-01 10:47:42 +02:00
Uwe Steinmann
164282cfb9 add new method hasSubFolderByName(), fix hasDocumetByName()
hasDocumetByName() returned a positiv integer if documents of the folder
has been loaded before.
2019-07-01 10:46:27 +02:00
Uwe Steinmann
e8c9fd5e4e add changes for 5.1.12 2019-06-26 20:41:19 +02:00
Uwe Steinmann
86c03d3ee4 check if $orderby is set before using it 2019-06-26 18:02:26 +02:00