plugin:usecounter
Table of Contents
usecounter Plugin
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
What's it for?
This plugin provides a helper class that manages the amount of occurences of any given object.
There are two simple mechanics that can be used.
- incUsageOf(string $id) - indicates to the helper that the object with the given identifier is used (once more). The helper internally counts the amount of uses for this identifier.
- amountOfUses(string $id) - returns an integer value of the amount of uses.
The helper is implemented as a Singleton instance, so a particular identifier could be used accross multiple plugins. Keep this in mind when choosing an identifier.
Syntax
There is no wiki syntax involved.
Configuration and Settings
No configuration settings available.
Development
Sources on github.
Change Log
- 2023-01-31
- v0.8 (Initial release)
Known Bugs and Issues
See issue tracker on github.
FAQ
None, yet.
Discussion
Start here.
plugin/usecounter.txt · Last modified: 2023-01-31 08:30 by thomas-schaefer-nh