Clanbite Points Since 1.1.0
rule_max_times( array $rule, int $per_event ): intHow many times a rule may be earned per period (0 = unlimited).
Rules store max_times. Rules saved before that field existed only have max_points (a cap on total points per period). It is converted to the number of awards it allowed. A cap smaller than one award can never have meant points, so it is read as the number of times (10 points with a cap of 5 means five times).
public static
Class: Kernowdev\ClanbitePoints\Points\Engine
Parameters
$rule(array<string,mixed>) RequiredStored rule row.
$per_event(int) RequiredPoints per event for the rule.
Returns
int
Defined in inc/Points/Engine.php
Changelog
| Version | Description |
|---|---|
| 1.1.0 | Introduced. |