MDL-31989 search: Search API and search engine API
authorDavid Monllao <davidm@moodle.com>
Fri, 19 Feb 2016 06:46:37 +0000 (14:46 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 23 Feb 2016 10:47:58 +0000 (10:47 +0000)
commitdb48207e1a84d1981f55c87f1fd70ddb935dffc7
tree4ffd1014c7b113577eefabe46304b30fde1949ae
parent95c6aeaf1c5dabc21ca6e1a7a9567b0b73721de9
MDL-31989 search: Search API and search engine API

Introducing both APIs in moodle along with:
- search_box widget to add a tiny search box
- admin settings with setup steps helper
- cache for search results
- template for a search result
- php unit stuff

Many thanks to Tomasz Muras, Prateek Sachan and Daniel Neis for their contributions, for starting this development
and for pushing for it to be completed. Also thanks to other contributors: Jonathan Harker and eugeneventer.
38 files changed:
admin/settings/plugins.php
admin/settings/subsystems.php
lang/en/admin.php
lang/en/cache.php
lang/en/moodle.php
lang/en/search.php
lib/adminlib.php
lib/amd/build/search-input.min.js [new file with mode: 0644]
lib/amd/src/search-input.js [new file with mode: 0644]
lib/classes/event/search_indexed.php [new file with mode: 0644]
lib/classes/plugin_manager.php
lib/classes/plugininfo/search.php [new file with mode: 0644]
lib/db/caches.php
lib/db/events.php
lib/editorlib.php
lib/navigationlib.php
lib/outputrenderers.php
lib/phpunit/classes/util.php
phpunit.xml.dist
search/classes/area/base.php [new file with mode: 0644]
search/classes/area/base_activity.php [new file with mode: 0644]
search/classes/area/base_mod.php [new file with mode: 0644]
search/classes/document.php [new file with mode: 0644]
search/classes/document_factory.php [new file with mode: 0644]
search/classes/engine.php [new file with mode: 0644]
search/classes/engine_exception.php [new file with mode: 0644]
search/classes/manager.php [new file with mode: 0644]
search/classes/observer.php [new file with mode: 0644]
search/classes/output/form/search.php [new file with mode: 0644]
search/classes/output/renderer.php [new file with mode: 0644]
search/index.php [new file with mode: 0644]
search/templates/result.mustache [new file with mode: 0644]
search/tests/engine_test.php [new file with mode: 0644]
search/tests/fixtures/mock_search_area.php [new file with mode: 0644]
search/tests/fixtures/mock_search_engine.php [new file with mode: 0644]
search/tests/fixtures/testable_core_search.php [new file with mode: 0644]
search/tests/manager_test.php [new file with mode: 0644]
version.php