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

Helper class for content bank files repository. More...

Static Public Member Functions

static create_contentbank_content_node (\core_contentbank\content $content)
 Create the content bank content node. More...
 
static create_context_folder_node (string $name, string $path)
 Create the context folder node. More...
 
static create_navigation_node (\context $context)
 Generate a navigation node. More...
 
static get_contentbank_browser (\context $context)
 Get the content bank repository browser for a certain context. More...
 

Detailed Description

Helper class for content bank files repository.

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

Member Function Documentation

◆ create_contentbank_content_node()

static repository_contentbank\helper::create_contentbank_content_node ( \core_contentbank\content  $content)
static

Create the content bank content node.

Parameters
core_contentbank::content$contentThe content bank content
Return values
array|nullThe content bank content node

◆ create_context_folder_node()

static repository_contentbank\helper::create_context_folder_node ( string  $name,
string  $path 
)
static

Create the context folder node.

Parameters
string$nameThe name of the context folder node
string$pathThe path to the context folder node
Return values
arrayThe context folder node

◆ create_navigation_node()

static repository_contentbank\helper::create_navigation_node ( \context  $context)
static

Generate a navigation node.

Parameters
context$contextThe context
Return values
arrayThe navigation node

◆ get_contentbank_browser()

static repository_contentbank\helper::get_contentbank_browser ( \context  $context)
static

Get the content bank repository browser for a certain context.

Parameters
context$contextThe context
Return values
repository_contentbank::browser::contentbank_browser|nullThe content bank repository browser

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