MDL-78551 core_communication: Add hook listeners

This commit is contained in:
Safat
2024-03-26 13:53:39 +11:00
parent fc7127e867
commit abed8cddbf
10 changed files with 2285 additions and 25 deletions
+10 -1
View File
@@ -111,7 +111,7 @@ class processor {
/**
* Update the communication instance with any changes.
*
* @param null|int $active Active state of the instance (processor::PROVIDER_ACTIVE or processor::PROVIDER_INACTIVE)
* @param null|string $active Active state of the instance (processor::PROVIDER_ACTIVE or processor::PROVIDER_INACTIVE)
* @param null|string $roomname The room name
*/
public function update_instance(
@@ -489,6 +489,15 @@ class processor {
return $this->instancedata->roomname;
}
/**
* Get provider active status.
*
* @return int
*/
public function get_provider_status(): int {
return $this->instancedata->active;
}
/**
* Get communication instance id.
*