Function __global->prevent_double_submit
Definitions
sources/global4.php
- Prevent double submission, by reference to recent matching admin log entries by the current member.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $type | ID_TEXT | No | No | required parameter | N/A | N/A | The type of activity just carried out (a language string codename) |
| $a | ?SHORT_TEXT | No | No | Null | N/A | N/A | The most important parameter of the activity (e.g. ID) (null: none / cannot match against) |
| $b | ?SHORT_TEXT | No | No | Null | N/A | N/A | A secondary (perhaps, human readable) parameter of the activity (e.g. caption) (null: none / cannot match against) |
Preview
Code (PHP)
/**
* Prevent double submission, by reference to recent matching admin log entries by the current member.
*
* @param ID_TEXT $type The type of activity just carried out (a language string codename)
* @param ?SHORT_TEXT $a The most important parameter of the activity (e.g. ID) (null: none / cannot match against)
* @param ?SHORT_TEXT $b A secondary (perhaps, human readable) parameter of the activity (e.g. caption) (null: none / cannot match against)
*/
function prevent_double_submit(string $type, ?string $a = null, ?string $b = null)
* Prevent double submission, by reference to recent matching admin log entries by the current member.
*
* @param ID_TEXT $type The type of activity just carried out (a language string codename)
* @param ?SHORT_TEXT $a The most important parameter of the activity (e.g. ID) (null: none / cannot match against)
* @param ?SHORT_TEXT $b A secondary (perhaps, human readable) parameter of the activity (e.g. caption) (null: none / cannot match against)
*/
function prevent_double_submit(string $type, ?string $a = null, ?string $b = null)

