Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
customfield_number

Namespaces

namespace  customfield_number
  
 
namespace  customfield_number\external
  
 
namespace  customfield_number\hook
  
 
namespace  customfield_number\local\numberproviders
  
 
namespace  customfield_number\privacy
  
 
namespace  customfield_number\task
  
 

Classes

class  customfield_number\data_controller
 
class  customfield_number\external\recalculate
 
class  customfield_number\field_controller
 
class  customfield_number\hook\add_custom_providers
 
class  customfield_number\local\numberproviders\nofactivities
 
class  customfield_number\missing_provider
 
class  customfield_number\observer
 
class  customfield_number\privacy\provider
 
class  customfield_number\provider_base
 
class  customfield_number\task\cron
 
class  customfield_number\task\recalculate
 

Variables

 $functions
 
 $observers
 
 $plugin = 2025040800
 
 $tasks
 
$plugin component = 'customfield_number'
 
$plugin maturity = MATURITY_STABLE
 
$plugin version = 2025041400
 

Detailed Description

Variable Documentation

◆ $functions

$functions
Initial value:
= [
'customfield_number_recalculate_value' => [
'classname' => customfield_number\external\recalculate::class,
'description' => 'This web service is used to recalculate the value of automatically populated number custom field.',
'type' => 'write',
'ajax' => true,
],
]

◆ $observers

$observers
Initial value:
= [
[
'eventname' => core_customfield\event\field_created::class,
'callback' => 'customfield_number\observer::field_created',
],
[
'eventname' => core_customfield\event\field_updated::class,
'callback' => 'customfield_number\observer::field_updated',
],
[
'eventname' => core\event\course_module_created::class,
'callback' => 'customfield_number\observer::course_module_created',
],
[
'eventname' => core\event\course_module_deleted::class,
'callback' => 'customfield_number\observer::course_module_deleted',
],
[
'eventname' => core\event\course_module_updated::class,
'callback' => 'customfield_number\observer::course_module_updated',
],
]

◆ $tasks

$tasks
Initial value:
= [
[
'classname' => customfield_number\task\cron::class,
'minute' => 'R',
'hour' => '2',
'day' => '*',
'month' => '*',
'dayofweek' => '*',
],
]