mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-56020 search: Adapt code to new style and add tests
This commit is contained in:
parent
49e589445d
commit
f94e1ef3c9
9 changed files with 321 additions and 314 deletions
|
@ -1707,12 +1707,11 @@ $functions = array(
|
|||
'ajax' => true
|
||||
),
|
||||
'core_search_get_results' => array(
|
||||
'classname' => 'core_search_external',
|
||||
'methodname' => 'get_results',
|
||||
'classpath' => 'search/classes/external.php',
|
||||
'description' => 'Search contents.',
|
||||
'classname' => '\core_search\external\get_results',
|
||||
'description' => 'Get search results.',
|
||||
'type' => 'read',
|
||||
'capabilities' => 'moodle/search:query'
|
||||
'capabilities' => 'moodle/search:query',
|
||||
'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
|
||||
),
|
||||
'core_tag_get_tagindex' => array(
|
||||
'classname' => 'core_tag_external',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue