Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Namespaces | |
namespace | core_badges |
| |
namespace | core_badges\external |
| |
namespace | core_badges\form |
| |
namespace | core_badges\oauth2 |
| |
namespace | core_badges\output |
| |
namespace | core_badges\privacy |
| |
namespace | core_badges\reportbuilder\datasource |
| |
namespace | core_badges\reportbuilder\local\entities |
| |
namespace | core_badges\reportbuilder\local\systemreports |
| |
Functions | |
badge_get_tagged_badges (object $tag, bool $exclusivemode=false, null|int $fromctx=0, null|int $ctx=0, bool $rec=true, int $page=0) | |
Returns badges tagged with a specified tag. | |
badges_install_default_backpacks () | |
Called on install or upgrade to create default list of backpacks a user can connect to. | |
core_badges_myprofile_navigation (\core_user\output\myprofile\tree $tree, $user, $iscurrentuser, $course) | |
Add nodes to myprofile page. | |
badge_get_tagged_badges | ( | object | $tag, |
bool | $exclusivemode = false, | ||
null|int | $fromctx = 0, | ||
null|int | $ctx = 0, | ||
bool | $rec = true, | ||
int | $page = 0 ) |
Returns badges tagged with a specified tag.
object | $tag | |
bool | $exclusivemode | if set to true it means that no other entities tagged with this tag are displayed on the page and the per-page limit may be bigger |
null | int | $fromctx | context id where the link was displayed, may be used by callbacks to display items in the same context first |
null | int | $ctx | context id where to search for records |
bool | $rec | search in subcontexts as well |
int | $page | 0-based number of page being displayed |
core_tag\output\tagindex |
badges_install_default_backpacks | ( | ) |
Called on install or upgrade to create default list of backpacks a user can connect to.
Don't use the global defines from badgeslib because this is for install/upgrade.
void |
core_badges_myprofile_navigation | ( | \core_user\output\myprofile\tree | $tree, |
$user, | |||
$iscurrentuser, | |||
$course ) |
Add nodes to myprofile page.
core_user\output\myprofile\tree | $tree | Tree object |
stdClass | $user | user object |
bool | $iscurrentuser | |
stdClass | $course | Course object |
bool |