Uwe Steinmann
007e3faa0a
various minor changes ported back from SeedDMS 6
2021-09-28 16:20:33 +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
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
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
1d031e44a2
return null not false if getInstanceByName() didn't find a folder
2021-09-16 16:16:21 +02:00
Uwe Steinmann
03ef93df2c
add parameter $incdisabled to SeedDMS_Core_Folder::getNotifyList()
2021-02-05 13:25:46 +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
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
f2c376cadc
sync call of getReadAccessList() with SeedDMS_Core_Document::getReadAccessList()
2020-12-12 16:27:01 +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
3cf091099b
fix many remaining todos (moѕtly wrong var names)
2020-06-05 18:06:27 +02: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
99238a34f4
run decorators, new method isType(), use $this instead of self::
2019-08-08 08:43:20 +02:00
Uwe Steinmann
ba9f4ba749
rename SeedDMS_Core_Folder::empty to emptyFolder
2019-07-17 10:50:52 +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
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
86c03d3ee4
check if $orderby is set before using it
2019-06-26 18:02:26 +02:00
Uwe Steinmann
7485dbba15
use only first char of $orderby
2019-06-24 11:46:25 +02:00
Uwe Steinmann
951ca85e96
call hook onCheckAccessFolder and pass $context
2018-07-12 22:01:40 +02:00
Uwe Steinmann
cfec7323d7
add hooks on[Post|Pre]RemoveFromDatabaseFolder
...
on[Post|Pre]RemoveFolder is called before and after any removal
2018-03-07 12:22:35 +01:00
Uwe Steinmann
ad8d0d9bba
Merge branch 'seeddms-5.0.x' into seeddms-5.1.x
2018-02-20 06:38:22 +01:00
Uwe Steinmann
fc434419fe
Merge branch 'seeddms-4.3.x' into seeddms-5.0.x
2018-02-20 06:36:20 +01:00
Uwe Steinmann
71ac5428ca
fix wrong parameter comment of addDocument()
2018-02-20 06:35:48 +01:00
Uwe Steinmann
3e5d744d6d
Merge commit '10896ca183a4fa0b30c02fca8831d2f5497e6a76' into seeddms-5.1.x
2018-02-08 09:25:45 +01:00
Uwe Steinmann
e5b215936a
add new method SeedDMS_Core_Folder::getDocumentsMinMax()
2018-02-07 09:51:20 +01:00
Uwe Steinmann
3330085f51
getInstance() returns null if folder was not found in db
2017-12-22 13:01:38 +01:00
Uwe Steinmann
b0747e74f0
add optional parameter $limit and $offset to SeedDMS_Core_Folder::getSubFolders
2017-12-19 07:05:08 +01:00
Uwe Steinmann
c8ce5e9ea9
add optional parameters $limit and $offset to SeedDMS_Core_Folder::getDocuments()
2017-12-19 06:34:26 +01:00
Jörg Neugebauer
3f2e24f80d
inc.ClassFolder.php
2017-10-28 14:28:12 +02:00
Jörg Neugebauer
ab73fe5298
inc.ClassDMS.php
2017-10-24 14:00:56 +02:00
Uwe Steinmann
cb17de44fc
getNotifyList() returns only users which are not disabled
2017-07-28 10:28:57 +02:00
Uwe Steinmann
3c9c0b7e3a
check if onPreRemove[Document|Folder] returns bool or null
2017-05-12 08:16:05 +02:00
Uwe Steinmann
0053213856
pass $dms to getSearchFields() and cast id to text
2017-02-16 15:27:01 +01:00
Uwe Steinmann
307abdf493
pass tablename to getInsertID(), add pgsql as new db driver
2017-02-16 15:27:01 +01:00
Uwe Steinmann
28af59db73
remove double backticks in sql statement
2017-02-13 18:23:24 +01:00
Uwe Steinmann
6e41c58beb
add backticks around identifier in sql statements
2017-02-10 08:04:19 +01:00
Uwe Steinmann
47db85c175
Merge branch 'seeddms-4.3.x' into seeddms-5.0.x
2017-01-18 15:11:45 +01:00
Uwe Steinmann
950449ac04
Merge branch 'seeddms-4.3.x' into seeddms-5.0.x
2017-01-12 18:03:01 +01:00