diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-11-23 23:53:55 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-09 14:34:23 +0100 |
commit | 2ce2de0ae523e91b90c39a91fdcc975f06a7674a (patch) | |
tree | b62b352eefb690e9a1b5e0c863aa13c0d72056bd /lib/public/comments/icommentsmanagerfactory.php | |
parent | 04f4565fcda4c7482c25681863237d05e850562a (diff) | |
download | nextcloud-server-2ce2de0ae523e91b90c39a91fdcc975f06a7674a.tar.gz nextcloud-server-2ce2de0ae523e91b90c39a91fdcc975f06a7674a.zip |
add icommentsmanger and icomment implementation
register CommentsManager service, allow override, document in config.sample.php
don't insert autoincrement ids in tests, because of dislikes from oracle and pgsql
specify timezone in null date
only accepts strings for ID parameter that can be converted to int
replace forgotten hardcoded IDs in tests
react on deleted users
react on file deletion
Postgresql compatibility
lastInsertId needs *PREFIX* with the table name
do not listen for file deletion, because it is not reliable (trashbin, external storages)
add runtime cache for comments
Diffstat (limited to 'lib/public/comments/icommentsmanagerfactory.php')
-rw-r--r-- | lib/public/comments/icommentsmanagerfactory.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/public/comments/icommentsmanagerfactory.php b/lib/public/comments/icommentsmanagerfactory.php new file mode 100644 index 00000000000..7bfb79aae00 --- /dev/null +++ b/lib/public/comments/icommentsmanagerfactory.php @@ -0,0 +1,22 @@ +<?php + +namespace OCP\Comments; + +/** + * Interface IComment + * + * This class represents a comment and offers methods for modification. + * + * @package OCP\Comments + * @since 9.0.0 + */ +interface ICommentsManagerFactory { + + /** + * creates and returns an instance of the ICommentsManager + * + * @return ICommentsManager + * @since 9.0.0 + */ + public function getManager(); +} |