Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core_courseformat\hook\after_cm_name_edited Class Reference
Inheritance diagram for core_courseformat\hook\after_cm_name_edited:
core\hook\described_hook

Public Member Functions

 __construct (protected cm_info cm_info $cm, protected string string $newname,)
 Constructor.
 
 get_cm ()
 Get course module instance.
 
 get_newname ()
 Get new name.
 

Static Public Member Functions

static get_hook_description ()
 Describes the hook purpose.
 
static get_hook_tags ()
 List of tags that describe this hook.
 

Constructor & Destructor Documentation

◆ __construct()

core_courseformat\hook\after_cm_name_edited::__construct ( protected cm_info cm_info $cm,
protected string string $newname )

Constructor.

Parameters
cm_info$cmthe course module
string$newnamethe new name
Parameters
$cmthe course module
$newnamethe new name

Member Function Documentation

◆ get_cm()

core_courseformat\hook\after_cm_name_edited::get_cm ( )

Get course module instance.

Return values
cm_info

◆ get_hook_description()

static core_courseformat\hook\after_cm_name_edited::get_hook_description ( )
static

Describes the hook purpose.

Return values
string

Implements core\hook\described_hook.

◆ get_hook_tags()

static core_courseformat\hook\after_cm_name_edited::get_hook_tags ( )
static

List of tags that describe this hook.

Return values
string[]

Implements core\hook\described_hook.

◆ get_newname()

core_courseformat\hook\after_cm_name_edited::get_newname ( )

Get new name.

Return values
string

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