Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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.
 

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: