Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
repository_contentbank\contentbank_search Class Reference

Represents the content bank search related functionality. More...

Static Public Member Functions

static get_search_contents (string $search)
 Generate and return content nodes for all content bank files that match the search criteria and can be viewed/accessed by the user. More...
 

Detailed Description

Represents the content bank search related functionality.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_search_contents()

static repository_contentbank\contentbank_search::get_search_contents ( string  $search)
static

Generate and return content nodes for all content bank files that match the search criteria and can be viewed/accessed by the user.

Parameters
string$searchThe search string
Return values
array[]The array containing all content file nodes that match the search criteria. Each content node is an array with keys: shorttitle, title, datemodified, datecreated, author, license, isref, source, icon, thumbnail.

The documentation for this class was generated from the following file: