From 9ada0cfe7476f4e94d14682561a0f678088428e3 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 12 Mar 2018 02:20:47 +0400 Subject: Using a constant Signed-off-by: Valentin Popov --- classes/event/backup_performed.php | 2 +- classes/event/backup_restored.php | 2 +- classes/event/response_answer.php | 2 +- classes/event/service_added.php | 2 +- classes/event/service_deleted.php | 2 +- classes/event/service_deletedall.php | 2 +- classes/event/service_updated.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'classes/event') diff --git a/classes/event/backup_performed.php b/classes/event/backup_performed.php index 206e730..9dc3d64 100644 --- a/classes/event/backup_performed.php +++ b/classes/event/backup_performed.php @@ -39,7 +39,7 @@ class backup_performed extends \core\event\base { protected function init() { $this->data["crud"] = "c"; $this->data["edulevel"] = self::LEVEL_OTHER; - $this->data["objecttable"] = "local_webhooks_service"; + $this->data["objecttable"] = LOCAL_WEBHOOKS_NAME_TABLE; } /** diff --git a/classes/event/backup_restored.php b/classes/event/backup_restored.php index f0ba273..973ee78 100644 --- a/classes/event/backup_restored.php +++ b/classes/event/backup_restored.php @@ -39,7 +39,7 @@ class backup_restored extends \core\event\base { protected function init() { $this->data["crud"] = "u"; $this->data["edulevel"] = self::LEVEL_OTHER; - $this->data["objecttable"] = "local_webhooks_service"; + $this->data["objecttable"] = LOCAL_WEBHOOKS_NAME_TABLE; } /** diff --git a/classes/event/response_answer.php b/classes/event/response_answer.php index f104eec..f8ed74b 100644 --- a/classes/event/response_answer.php +++ b/classes/event/response_answer.php @@ -39,7 +39,7 @@ class response_answer extends \core\event\base { protected function init() { $this->data["crud"] = "r"; $this->data["edulevel"] = self::LEVEL_OTHER; - $this->data["objecttable"] = "local_webhooks_service"; + $this->data["objecttable"] = LOCAL_WEBHOOKS_NAME_TABLE; } /** diff --git a/classes/event/service_added.php b/classes/event/service_added.php index 0449e9c..f470718 100644 --- a/classes/event/service_added.php +++ b/classes/event/service_added.php @@ -39,7 +39,7 @@ class service_added extends \core\event\base { protected function init() { $this->data["crud"] = "c"; $this->data["edulevel"] = self::LEVEL_OTHER; - $this->data["objecttable"] = "local_webhooks_service"; + $this->data["objecttable"] = LOCAL_WEBHOOKS_NAME_TABLE; } /** diff --git a/classes/event/service_deleted.php b/classes/event/service_deleted.php index 3937f85..fd36106 100644 --- a/classes/event/service_deleted.php +++ b/classes/event/service_deleted.php @@ -39,7 +39,7 @@ class service_deleted extends \core\event\base { protected function init() { $this->data["crud"] = "d"; $this->data["edulevel"] = self::LEVEL_OTHER; - $this->data["objecttable"] = "local_webhooks_service"; + $this->data["objecttable"] = LOCAL_WEBHOOKS_NAME_TABLE; } /** diff --git a/classes/event/service_deletedall.php b/classes/event/service_deletedall.php index a7eba67..666379e 100644 --- a/classes/event/service_deletedall.php +++ b/classes/event/service_deletedall.php @@ -39,7 +39,7 @@ class service_deletedall extends \core\event\base { protected function init() { $this->data["crud"] = "d"; $this->data["edulevel"] = self::LEVEL_OTHER; - $this->data["objecttable"] = "local_webhooks_service"; + $this->data["objecttable"] = LOCAL_WEBHOOKS_NAME_TABLE; } /** diff --git a/classes/event/service_updated.php b/classes/event/service_updated.php index f6cb3ac..9c9318a 100644 --- a/classes/event/service_updated.php +++ b/classes/event/service_updated.php @@ -39,7 +39,7 @@ class service_updated extends \core\event\base { protected function init() { $this->data["crud"] = "u"; $this->data["edulevel"] = self::LEVEL_OTHER; - $this->data["objecttable"] = "local_webhooks_service"; + $this->data["objecttable"] = LOCAL_WEBHOOKS_NAME_TABLE; } /** -- cgit v1.2.3