diff options
author | Valentin Popov <info@valentineus.link> | 2018-02-19 12:44:11 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-02-19 12:44:11 +0300 |
commit | a41dbbb950d4a71aba46aaa25cecc811eb34242e (patch) | |
tree | a5e8a13b370ac601a1d6d35b9b154d541fd36a16 /locallib.php | |
parent | a68882140b93fd3a7b1e11ee77c13d9931a7083a (diff) | |
download | local_webhooks-a41dbbb950d4a71aba46aaa25cecc811eb34242e.tar.xz local_webhooks-a41dbbb950d4a71aba46aaa25cecc811eb34242e.zip |
Transferring internal functions to the internal library
Diffstat (limited to 'locallib.php')
-rw-r--r-- | locallib.php | 22 |
1 files changed, 22 insertions, 0 deletions
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> |