MDL-65313 core_favourite: add component-scoped favourite service class
authorJake Dallimore <jake@moodle.com>
Wed, 10 Apr 2019 01:36:45 +0000 (09:36 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 6 May 2019 06:01:34 +0000 (14:01 +0800)
commitf962859b5603370825f7002a4ce0aafd19398a70
treed3bcc545d6ef73d424de0986455c898c9f4bdc3e
parenta411b499b98afc9901c24a9466c7e322946a04aa
MDL-65313 core_favourite: add component-scoped favourite service class

Added a new type of service which can be used to interact with the
all favourites for a given component, not just those owned by a a
specific user. As such, objects of this type are scoped to a component.
favourites/classes/local/service/component_favourite_service.php [new file with mode: 0644]
favourites/classes/service_factory.php
favourites/tests/component_favourite_service_test.php [new file with mode: 0644]
favourites/tests/user_favourite_service_test.php [moved from favourites/tests/service_test.php with 100% similarity]