Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
customfield_number\hook\add_custom_providers Class Reference

Public Member Functions

 __construct (public field_controller readonly field_controller $field,)
 Constructor.
 
 add_provider (provider_base $provider)
 Add a provider to the hook.
 
 get_providers ()
 Get the list of providers added through the hook.
 

Protected Attributes

provider_base[] array $providers = []
 $providers
 

Constructor & Destructor Documentation

◆ __construct()

customfield_number\hook\add_custom_providers::__construct ( public field_controller readonly field_controller $field)

Constructor.

Parameters
field_controller$fieldthe custom field controller
Parameters
$fieldthe custom field controller

Member Function Documentation

◆ add_provider()

customfield_number\hook\add_custom_providers::add_provider ( provider_base $provider)

Add a provider to the hook.

Parameters
provider_base$provider

◆ get_providers()

customfield_number\hook\add_custom_providers::get_providers ( )

Get the list of providers added through the hook.

Return values
provider_base[]

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