MDL-55356 core_search: API to check if indexing enabled
authorsam marshall <s.marshall@open.ac.uk>
Thu, 7 Sep 2017 09:46:58 +0000 (10:46 +0100)
committersam marshall <s.marshall@open.ac.uk>
Wed, 11 Oct 2017 16:17:06 +0000 (17:17 +0100)
commitd761b3fb191183f1608a6d23450596985c34cfc8
treeaf2924a3ec45471c047a713e9120cf7559aed407
parent0da8f62f3b588a3493dc58d468d826e0ea61a813
MDL-55356 core_search: API to check if indexing enabled

New function \core_search\manager::is_indexing_enabled(), analagous
to existing is_global_search_enabled().

This replaces existing duplicated code, ready for more use in
following commits.
lib/classes/task/search_index_task.php
lib/classes/task/search_optimize_task.php
search/classes/manager.php