Uwe Steinmann
|
68bb7bcfaf
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2022-02-21 08:55:01 +01:00 |
|
Uwe Steinmann
|
f9721da684
|
use SeedDMS_Core_File::fileExtension() in setFileType()
|
2022-02-21 08:52:59 +01:00 |
|
Uwe Steinmann
|
eb12465fb2
|
add SeedDMS_Core_File::fileExtension()
|
2022-02-21 08:52:46 +01:00 |
|
Uwe Steinmann
|
5b244db6a2
|
backport setFileType() from seeddms 6.0.x
|
2022-02-21 08:30:32 +01:00 |
|
Uwe Steinmann
|
663dc869f4
|
fix line indenting
|
2022-02-21 07:12:01 +01:00 |
|
Uwe Steinmann
|
535a0b1b67
|
fix line indenting
|
2022-02-21 07:10:28 +01:00 |
|
Uwe Steinmann
|
0f417a2d7b
|
handle docs in workflow proppeerly in verifyStatus()
|
2022-02-21 07:10:08 +01:00 |
|
Uwe Steinmann
|
87ee71a1a1
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2022-02-18 18:15:05 +01:00 |
|
Uwe Steinmann
|
ec1f99229e
|
rename getLastWorkflowTransition() to getLastWorkflowLow(), returns a log even after the workflow was ended
|
2022-02-18 18:02:08 +01:00 |
|
Uwe Steinmann
|
cffad48b61
|
add method descrition for getWorkflowLog()
|
2022-02-18 18:01:35 +01:00 |
|
Uwe Steinmann
|
d91787bf44
|
check if !workflow instead of isset(workflow)
|
2022-02-18 18:00:50 +01:00 |
|
Uwe Steinmann
|
d805de5035
|
setHomeFolder returns true on success
|
2022-02-18 18:00:07 +01:00 |
|
Uwe Steinmann
|
cc5d7d1ecd
|
search for document by name in root folder if requested
|
2022-02-18 17:58:39 +01:00 |
|
Uwe Steinmann
|
96933bb30d
|
ensure setRole() is passed an object
|
2022-02-17 12:30:29 +01:00 |
|
Uwe Steinmann
|
b9c613ff83
|
handle role in addUser() propperly
|
2022-02-17 12:29:37 +01:00 |
|
Uwe Steinmann
|
b57dc78e2a
|
replace checks isset(_workflow) with _workflow == null
|
2022-02-14 11:06:02 +01:00 |
|
Uwe Steinmann
|
3e63f1ffc0
|
init $ret in setStatus()
|
2022-02-11 10:56:14 +01:00 |
|
Uwe Steinmann
|
29a6882106
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2021-12-11 14:08:19 +01:00 |
|
Uwe Steinmann
|
5ff285c745
|
start new version 5.1.25
|
2021-12-11 14:00:22 +01:00 |
|
Uwe Steinmann
|
fa946be140
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2021-12-03 20:39:13 +01:00 |
|
Uwe Steinmann
|
897f6ce64b
|
fix indenting of lines
|
2021-12-03 19:12:53 +01:00 |
|
Uwe Steinmann
|
31fda7e60e
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2021-11-08 14:36:39 +01:00 |
|
Uwe Steinmann
|
a0566372f7
|
add sorting by id in search(), set default to unsorted
|
2021-11-08 12:25:06 +01:00 |
|
Uwe Steinmann
|
4e5fefa4ba
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2021-11-04 17:07:36 +01:00 |
|
Uwe Steinmann
|
de003de613
|
fix indenting of lines
|
2021-11-04 17:04:47 +01:00 |
|
Uwe Steinmann
|
a830b18fc3
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2021-10-06 15:19:14 +02:00 |
|
Uwe Steinmann
|
1a61a6ca8f
|
fix recursive removal and copying of dirs
|
2021-10-04 20:26:03 +02:00 |
|
Uwe Steinmann
|
790eef7e84
|
handle special case size=1 in format_filesize()
|
2021-10-04 20:24:51 +02:00 |
|
Uwe Steinmann
|
7bac4e730e
|
make fopen() silent in fileSize()
|
2021-10-04 20:24:02 +02:00 |
|
Uwe Steinmann
|
357c0c1bac
|
fix error in moveFile()
|
2021-10-04 20:23:17 +02:00 |
|
Uwe Steinmann
|
9c5e5905c9
|
check if version exists and is not the latest version in removeVersion()
|
2021-10-04 20:22:21 +02:00 |
|
Uwe Steinmann
|
cd061e8c2f
|
file is removed after cleaning up the database in _removeContent()
|
2021-10-04 20:21:41 +02:00 |
|
Uwe Steinmann
|
a0b95e8792
|
check if argument passed to setDefaultAccess() is in valid range
|
2021-10-04 20:20:45 +02:00 |
|
Uwe Steinmann
|
b5a6ea330b
|
check if argument passed to setOwner() is a user
|
2021-10-04 20:20:08 +02:00 |
|
Uwe Steinmann
|
fb86b4330c
|
check if passed argument to setFolder() is a folder
|
2021-10-04 20:17:21 +02:00 |
|
Uwe Steinmann
|
c4380583a9
|
set M_LOWEST_RIGHT and M_HIGHTEST_RIGHT
|
2021-10-04 19:13:47 +02:00 |
|
Uwe Steinmann
|
cd08883c55
|
fix line indenting
|
2021-10-02 07:34:44 +02:00 |
|
Uwe Steinmann
|
b5ef570ea5
|
fix method comment
|
2021-10-02 07:34:18 +02:00 |
|
Uwe Steinmann
|
4913607e84
|
addGrpReviewer() returns false on sql error
|
2021-10-02 07:33:37 +02:00 |
|
Uwe Steinmann
|
68a1500ea6
|
check if date passed to setStatus() is valid
|
2021-10-02 07:32:49 +02:00 |
|
Uwe Steinmann
|
9ad56c418d
|
set if updateUser passed to setStatus() is a user
|
2021-10-02 07:31:44 +02:00 |
|
Uwe Steinmann
|
905b2aa621
|
format class method comment
|
2021-10-02 07:29:54 +02:00 |
|
Uwe Steinmann
|
0163159c84
|
new method setMimeType()
|
2021-10-02 07:29:15 +02:00 |
|
Uwe Steinmann
|
fbf86b0fe6
|
date passed to setDate() can be string with format Y-m-d H:i:s
|
2021-10-02 07:28:23 +02:00 |
|
Uwe Steinmann
|
bca394176e
|
cast date to int in constructor of SeedDMS_Core_DocumentContent
|
2021-10-02 07:27:29 +02:00 |
|
Uwe Steinmann
|
a0d214eac2
|
add getInheritAccess() as a replacement for inheritsAccess()
|
2021-10-02 07:26:37 +02:00 |
|
Uwe Steinmann
|
228b891e3a
|
do not clean notify list in setDefaultAccess() if rights are inherited
|
2021-10-02 07:25:48 +02:00 |
|
Uwe Steinmann
|
7ba418f25a
|
use upper case for sql keywords
|
2021-10-02 07:24:59 +02:00 |
|
Uwe Steinmann
|
bae7e939a1
|
fix line indenting
|
2021-10-02 07:23:23 +02:00 |
|
Uwe Steinmann
|
0260b8dad9
|
init categories in getCategories()
|
2021-09-30 15:44:54 +02:00 |
|
Uwe Steinmann
|
1b1e60f88f
|
setName() didn't work due to a copy&paste error
|
2021-09-30 15:44:08 +02:00 |
|
Uwe Steinmann
|
77a606cebe
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2021-09-30 07:56:50 +02:00 |
|
Uwe Steinmann
|
8c3857c6e2
|
fix indenting of lines
|
2021-09-30 07:01:22 +02:00 |
|
Uwe Steinmann
|
19266f1647
|
set return value and new status in verifyStatus()
|
2021-09-29 18:50:48 +02:00 |
|
Uwe Steinmann
|
ab5aec99ba
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2021-09-29 18:25: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
|
c8c79175bd
|
order review log by id desc
|
2021-09-29 14:58:55 +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
|
fbe091eaf6
|
minor fix in method documentation
|
2021-09-29 14:54:10 +02:00 |
|
Uwe Steinmann
|
1e451529b8
|
add method dropTemporaryTable()
|
2021-09-29 14:53:38 +02:00 |
|
Uwe Steinmann
|
8cd08a6f08
|
fix recreation of temp. table if requested
table was just emptied by not removed
|
2021-09-29 14:52:22 +02:00 |
|
Uwe Steinmann
|
dc48e5da2c
|
get[Review|Approval]Status takes ttreviewid|ttapproveid into account
|
2021-09-29 14:50:35 +02:00 |
|
Uwe Steinmann
|
007e3faa0a
|
various minor changes ported back from SeedDMS 6
|
2021-09-28 16:20:33 +02:00 |
|
Uwe Steinmann
|
b8763822d0
|
init possible values of attribute in getStatistic()
|
2021-09-28 16:19:25 +02:00 |
|
Uwe Steinmann
|
39ec44cd41
|
sewPwdExpiration() sets date internally not 'now'
|
2021-09-28 15:46:05 +02:00 |
|
Uwe Steinmann
|
b6a308e630
|
set default $role='3' in addUser()
|
2021-09-28 15:44:12 +02:00 |
|
Uwe Steinmann
|
0c1a795113
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2021-09-28 10:33:44 +02:00 |
|
Uwe Steinmann
|
28ddd4b5b2
|
check if passed user is a valid user in setOwner()
|
2021-09-27 10:13:46 +02:00 |
|
Uwe Steinmann
|
378377780e
|
trim name and check if not empty in setName()
|
2021-09-27 10:13:00 +02:00 |
|
Uwe Steinmann
|
e36f6ee15c
|
trim email, commen, language, theme before saving in database
|
2021-09-27 10:12:08 +02:00 |
|
Uwe Steinmann
|
3101d6d952
|
trim name in setName()
|
2021-09-27 10:09:42 +02:00 |
|
Uwe Steinmann
|
7a5123aa6c
|
trim name in setName()
|
2021-09-27 10:09:18 +02:00 |
|
Uwe Steinmann
|
88e0dcc58d
|
check if passed id > 0 in getWorkflow(), getWorkflowAction(), getWorkflowState()
|
2021-09-27 10:08:20 +02:00 |
|
Uwe Steinmann
|
79bcdb6086
|
getting category or attributedef. returns null not false if none was found
|
2021-09-27 10:07:19 +02:00 |
|
Uwe Steinmann
|
84ffa71d24
|
use upper case for all sql keywords in sql statements
|
2021-09-27 10:06:07 +02:00 |
|
Uwe Steinmann
|
a002a23c9b
|
do not dump table sqlite_sequence
|
2021-09-24 10:23:50 +02:00 |
|
Uwe Steinmann
|
8c3c49e3b5
|
add method useViews() to turn on/off the use of views
|
2021-09-24 10:23:11 +02:00 |
|
Uwe Steinmann
|
9d926fb55c
|
better documentation of getAccessMode()
|
2021-09-24 10:22:28 +02:00 |
|
Uwe Steinmann
|
959c75ff79
|
check parameter $mode of addAccess()
|
2021-09-24 10:21:32 +02:00 |
|
Uwe Steinmann
|
ce124bb862
|
fix indenting
|
2021-09-24 10:21:10 +02:00 |
|
Uwe Steinmann
|
8e302bc770
|
hasDocuments() doesn't use internal cache anymore
|
2021-09-24 10:20:19 +02:00 |
|
Uwe Steinmann
|
3cf58fbc86
|
add some documentation for isDescendant() and isSubFolder()
|
2021-09-24 10:19:31 +02:00 |
|
Uwe Steinmann
|
3d7357fca9
|
clear _notifyList in clearCache()
|
2021-09-24 10:17:04 +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
|
3b55c458c2
|
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
|
2021-09-22 10:54:54 +02:00 |
|
Uwe Steinmann
|
da8765fe33
|
add method getFoldersMinMax()
|
2021-09-22 09:48:12 +02:00 |
|
Uwe Steinmann
|
5a587e5c85
|
add more documentation for isSubFolder()
|
2021-09-22 09:47:40 +02:00 |
|
Uwe Steinmann
|
674002c02f
|
init class variables for internal cache, add method to clear cache
|
2021-09-22 09:46:20 +02:00 |
|
Uwe Steinmann
|
16e48bbb16
|
search() will not find docs without expiration date if filtered by expiration date
|
2021-09-22 09:45:06 +02:00 |
|
Uwe Steinmann
|
37a30e6082
|
start and end date of expiration are within the range in search()
|
2021-09-22 09:43:51 +02:00 |
|
Uwe Steinmann
|
e23b9f09ad
|
check expiration date in search()
|
2021-09-22 09:43:12 +02:00 |
|
Uwe Steinmann
|
96f858cbdd
|
getDocumentContent() returns null if no document was found
|
2021-09-22 09:42:31 +02:00 |
|
Uwe Steinmann
|
b6452faa9b
|
order documents by id, return null if getDocumentByOriginalFilename() does not find any documents
|
2021-09-22 09:41:23 +02:00 |
|
Uwe Steinmann
|
96f8c1db21
|
order documents by id in getDocumentByName(), return null if not document was found
|
2021-09-22 09:40:25 +02:00 |
|
Uwe Steinmann
|
b777b786dd
|
check expiration date in search()
|
2021-09-22 09:39:18 +02:00 |
|
Uwe Steinmann
|
822a07485c
|
getImage() returns null if no image exists
|
2021-09-20 16:41:07 +02:00 |
|
Uwe Steinmann
|
4322b97fe2
|
better checking of quota when set by setQuota()
|
2021-09-20 16:40:30 +02:00 |
|
Uwe Steinmann
|
472b066d4b
|
cast $newRole to int when passed to setRole()
|
2021-09-20 16:40:00 +02:00 |
|
Uwe Steinmann
|
af9178aa93
|
set internal pwd expiration to null when set to 'never' or ''
|
2021-09-20 16:39:08 +02:00 |
|
Uwe Steinmann
|
08836de4d8
|
number of counted folders/documents is converted to int before return
|
2021-09-20 16:37:45 +02:00 |
|
Uwe Steinmann
|
47e07ae2d1
|
return null if no folder was found by getParent()
|
2021-09-20 16:37:10 +02:00 |
|
Uwe Steinmann
|
247e8b09ca
|
set date to current timestamp if $date passed to setDate() is false
|
2021-09-20 16:36:24 +02:00 |
|
Uwe Steinmann
|
6d01627553
|
fix comment (document -> folder)
|
2021-09-20 16:34:57 +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
|
a5e12cb444
|
fix errors in coding style
|
2021-09-20 16:31:42 +02:00 |
|
Uwe Steinmann
|
851e81a9b9
|
check if login != '' in setLogin()
|
2021-09-18 17:51:17 +02:00 |
|
Uwe Steinmann
|
578aa30bc5
|
better checking of passed arguments
|
2021-09-18 17:50:32 +02:00 |
|
Uwe Steinmann
|
e765737d93
|
trim name passed to various methods
|
2021-09-18 17:49:26 +02:00 |
|
Uwe Steinmann
|
90aac2f1ad
|
new method createDump() which was in SeedDMS_Core_DMS
|
2021-09-17 19:00:57 +02:00 |
|
Uwe Steinmann
|
2789e017eb
|
check function pass to setCallback() and addCallback() is callable, remove createDump()
|
2021-09-17 19:00:06 +02:00 |
|
Uwe Steinmann
|
59c16b3ce4
|
trim name passed to addDocumentCategory() and check if != ''
|
2021-09-17 18:59:06 +02:00 |
|
Uwe Steinmann
|
3ed0854e13
|
check if id passed to getDocumentCategory() is < 1
|
2021-09-17 18:58:29 +02:00 |
|
Uwe Steinmann
|
e809297cfd
|
getAllUserKeywordCategories() calls getAllKeywordCategories(), better checking of parameters pass to addDocumentCategory()
|
2021-09-17 18:31:19 +02:00 |
|
Uwe Steinmann
|
2ee30ccd5b
|
ensure user ids passed to getAllKeywordCategories() are all integers
|
2021-09-17 18:29:33 +02:00 |
|
Uwe Steinmann
|
7d7deeb313
|
check if id passed to getKeywordCategory() is greater 0
|
2021-09-17 18:28:40 +02:00 |
|
Uwe Steinmann
|
e06cd59f6c
|
fix wrong spell callback name 'onPostAddUser'
|
2021-09-17 18:28:01 +02:00 |
|
Uwe Steinmann
|
a39355f2ed
|
ensure $logicalmode in search() is either 'OR' or 'AND'
|
2021-09-17 18:27:16 +02:00 |
|
Uwe Steinmann
|
31290fbcf7
|
document meaning of 5 in $seachin passed to search()
|
2021-09-17 18:26:11 +02:00 |
|
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 |
|