diff options
-rw-r--r-- | lib.php | 22 | ||||
-rw-r--r-- | locallib.php | 22 |
2 files changed, 22 insertions, 22 deletions
@@ -258,26 +258,4 @@ function local_webhooks_send_request($event, $callback) { local_webhooks_events::response_answer($callback->id, $response); return $response; -} - -/** - * Data serialization. - * - * @param array|object $data - * @return string - */ -function local_webhooks_serialization_data($data) { - $result = serialize($data); - return $result; -} - -/** - * Data deserialization. - * - * @param string $data - * @return array|object - */ -function local_webhooks_deserialization_data($data) { - $result = unserialize($data); - return $result; }
\ No newline at end of file diff --git a/locallib.php b/locallib.php index 4d941ce..782714d 100644 --- a/locallib.php +++ b/locallib.php @@ -69,6 +69,28 @@ function local_webhooks_cache_reset() { } /** + * Data serialization. + * + * @param array|object $data + * @return string + */ +function local_webhooks_serialization_data($data) { + $result = serialize($data); + return $result; +} + +/** + * Data deserialization. + * + * @param string $data + * @return array|object + */ +function local_webhooks_deserialization_data($data) { + $result = unserialize($data); + return $result; +} + +/** * Description of functions of the call of events * * @copyright 2017 "Valentin Popov" <info@valentineus.link> |