Commit Graph

74 Commits

Author SHA1 Message Date
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
Uwe Steinmann
e80987de9a order groups by name getAccessList() 2017-01-10 17:51:46 +01:00
Uwe Steinmann
129b725414 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2016-05-03 06:32:54 +02:00
Uwe Steinmann
0b69ddb439 callbacks can have more than one user function 2016-04-26 12:06:41 +02:00
Uwe Steinmann
2c14ec295a various minor clean ups
remove old code, add scope of variables, add additional comments
2016-04-07 08:29:35 +02:00
Uwe Steinmann
2045060f78 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2016-04-04 08:59:28 +02:00
Uwe Steinmann
ae14f25d58 add more callbacks 2016-04-04 07:39:39 +02:00
Uwe Steinmann
0577fec1ba Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2016-03-22 15:11:42 +01:00
Uwe Steinmann
826c9fca72 use __construct for constructor 2016-03-22 15:08:36 +01:00
Uwe Steinmann
c3296e476b Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2015-09-22 07:57:54 +02:00
Uwe Steinmann
daa72a9ca3 user getCurrentTimestamp() and getCurrentDatetime() 2015-09-22 07:50:36 +02:00
Uwe Steinmann
cde8e830f5 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2015-08-19 09:24:05 +02:00
Uwe Steinmann
123cccc72a getAccessMode() takes user/group rights in acls into account for guests 2015-08-19 08:21:15 +02:00
Uwe Steinmann
81872f4319 unset homefolder of users before the folder will be deleted 2015-08-05 21:19:00 +02:00
Uwe Steinmann
1e17c393bb Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2015-08-05 16:57:07 +02:00
Uwe Steinmann
150e5445df add method setDate() 2015-08-04 07:39:14 +02:00
Uwe Steinmann
b5f5ef6e21 use configured classname in getInstance() 2015-07-15 22:28:58 +02:00
Uwe Steinmann
40646009ab minor documentation fix 2015-07-15 08:20:08 +02:00
Uwe Steinmann
44bb62f413 add optional parameter cleasAccessList()
will turn off removal of notification
2015-06-19 15:25:20 +02:00
Uwe Steinmann
68d1816251 add optional parameter cleasAccessList()
will turn off removal of notification
2015-06-19 15:24:19 +02:00
Uwe Steinmann
870fb2d662 add cleanNotifyList() which removes users/groups with read access
also adds an optional parameter $noclean to setDefaultAccess and
setInheritAccess which keeps the methods from cleaning up the
notifier list
2015-06-19 15:04:50 +02:00
Uwe Steinmann
28bfe5c1d7 add cleanNotifyList() which removes users/groups with read access
also adds an optional parameter $noclean to setDefaultAccess and
setInheritAccess which keeps the methods from cleaning up the
notifier list
2015-06-19 15:02:37 +02:00