Represents the content bank browser in the course context.
More...
|
| __construct (\context_course $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.
|
|
|
context | $context |
| The current context.
|
|
Represents the content bank browser in the course context.
- Copyright
- 2020 Mihail Geshoski mihai.nosp@m.l@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
repository_contentbank\browser\contentbank_browser_context_course::__construct |
( |
\context_course | $context | ) |
|
Constructor.
- Parameters
-
context_course | $context | The current context |
◆ allowed_child_context_levels()
repository_contentbank\browser\contentbank_browser_context_course::allowed_child_context_levels |
( |
| ) |
|
|
protected |
◆ can_access_content()
repository_contentbank\browser\contentbank_browser_context_course::can_access_content |
( |
| ) |
|
The required condition to enable the user to view/access the content bank content in this context.
- Return values
-
bool | Whether 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:
- repository/contentbank/classes/browser/contentbank_browser_context_course.php