You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1001 B
29 lines
1001 B
<?php
|
|
$observers = array(
|
|
// Eventos de cursos
|
|
array(
|
|
'eventname' => '\core\event\course_created',
|
|
'callback' => 'block_escola_modelo_observer::course_created'
|
|
),
|
|
array(
|
|
'eventname' => '\core\event\course_updated',
|
|
'callback' => 'block_escola_modelo_observer::course_updated'
|
|
),
|
|
array(
|
|
'eventname' => '\core\event\course_deleted',
|
|
'callback' => 'block_escola_modelo_observer::course_deleted'
|
|
),
|
|
// Eventos de matrícula a cursos
|
|
array(
|
|
'eventname' => 'core\event\user_enrolment_created',
|
|
'callback' => 'block_escola_modelo_observer::user_enrolment_created'
|
|
),
|
|
array(
|
|
'eventname' => 'core\event\user_enrolment_deleted',
|
|
'callback' => 'block_escola_modelo_observer::user_enrolment_deleted'
|
|
),
|
|
array(
|
|
'eventname' => 'core\event\user_enrolment_updated',
|
|
'callback' => 'block_escola_modelo_observer::user_enrolment_updated'
|
|
)
|
|
);
|
|
|