X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FAddonStorageBackend.md;h=d42c8bbbd7f7aadd87e1804c8ad0fcb1bdbb2919;hb=035528c2bec698dc372c0d1337e8dbbf3a9f967f;hp=d6ad9d37dbde3f56e1267ba2ad3231f606321211;hpb=ce31ccaade3874233950e283b580007ea314f3aa;p=friendica.git diff --git a/doc/AddonStorageBackend.md b/doc/AddonStorageBackend.md index d6ad9d37db..d42c8bbbd7 100644 --- a/doc/AddonStorageBackend.md +++ b/doc/AddonStorageBackend.md @@ -14,14 +14,16 @@ The class must implement `Friendica\Model\Storage\IStorage` interface. All metho namespace Friendica\Model\Storage; - interface IStorage - { - public static function get($ref); - public static function put($data, $ref = ""); - public static function delete($ref); - public static function getOptions(); - public static function saveOptions($data); - } +```php +interface IStorage +{ + public static function get($ref); + public static function put($data, $ref = ""); + public static function delete($ref); + public static function getOptions(); + public static function saveOptions($data); +} +``` - `get($ref)` returns data pointed by `$ref` - `put($data, $ref)` saves data in `$data` to position `$ref`, or a new position if `$ref` is empty. @@ -196,7 +198,7 @@ function samplestorage_unistall() // when the plugin is uninstalled, we unregister the backend. StorageManager::unregister("Sample Storage"); } - +```