Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
repository_contentbank\browser\contentbank_browser_context_coursecat Class Reference

Represents the content bank browser in the course category context. More...

Inheritance diagram for repository_contentbank\browser\contentbank_browser_context_coursecat:
repository_contentbank\browser\contentbank_browser

Public Member Functions

 __construct (\context_coursecat $context)
 Constructor.
 
 can_access_content ()
 The required condition to enable the user to view/access the content bank content in this context.
 
 get_content ()
 Get all content nodes in the current context which can be viewed/accessed by the user.
 
 get_navigation ()
 Generate the full navigation to the current node.
 

Protected Member Functions

 allowed_child_context_levels ()
 Define the allowed child context levels.
 
 get_child_contexts ()
 Get the relevant child contexts.
 

Protected Attributes

context $context
 The current context.
 

Detailed Description

Represents the content bank browser in the course category context.

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

Constructor & Destructor Documentation

◆ __construct()

repository_contentbank\browser\contentbank_browser_context_coursecat::__construct ( \context_coursecat $context)

Constructor.

Parameters
context_coursecat$contextThe current context

Member Function Documentation

◆ allowed_child_context_levels()

repository_contentbank\browser\contentbank_browser_context_coursecat::allowed_child_context_levels ( )
protected

Define the allowed child context levels.

Return values
int[]The array containing the relevant child context levels

Reimplemented from repository_contentbank\browser\contentbank_browser.

◆ can_access_content()

repository_contentbank\browser\contentbank_browser_context_coursecat::can_access_content ( )

The required condition to enable the user to view/access the content bank content in this context.

Return values
boolWhether the user can view/access the content bank content in the context

Reimplemented from repository_contentbank\browser\contentbank_browser.

◆ get_child_contexts()

repository_contentbank\browser\contentbank_browser::get_child_contexts ( )
protectedinherited

Get the relevant child contexts.

Return values
context[]The array containing the relevant, next-level children contexts

◆ get_content()

repository_contentbank\browser\contentbank_browser::get_content ( )
inherited

Get all content nodes in the current context which can be viewed/accessed by the user.

Return values
array[]The array containing all nodes which can be viewed/accessed by the user in the current context

◆ get_navigation()

repository_contentbank\browser\contentbank_browser::get_navigation ( )
inherited

Generate the full navigation to the current node.

Return values
array[]The array containing the path to each node in the navigation. Each navigation node is an array with keys: name, path.

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