Improved the recent changes modules:

- extracted from populate_recent_changes, the recent_changes_sources that enables to filter early.
Added author_name to the CMS_RECENT_CHANGE_ITEM to support author which is not related to any CMS_USER.
Implemented the simple filtering on source and add parameters size and date.
This commit is contained in:
2015-09-03 14:47:17 +02:00
parent 0d55bd67a2
commit 2431d7af6c
5 changed files with 127 additions and 40 deletions

View File

@@ -11,9 +11,13 @@ inherit
feature -- Invocation
populate_recent_changes (a_changes: CMS_RECENT_CHANGE_CONTAINER; a_sources: LIST [READABLE_STRING_8])
recent_changes_sources: detachable LIST [READABLE_STRING_8]
-- Source provided by Current hook.
deferred
end
populate_recent_changes (a_changes: CMS_RECENT_CHANGE_CONTAINER; a_current_user: detachable CMS_USER)
-- Populate recent changes inside `a_changes' according to associated parameters.
-- Also provide sources of information.
deferred
end