Advisor
class Advisor (View source)
A simple rules engine, that executes the rules in the {Rules} class.
Methods
void
setVariable(string|int $variable, mixed $value)
No description
array
getRunResult()
No description
array
run()
No description
void
addRule(string $type, array $rule)
Adds a rule to the result list
static string
byTime(float $num, int $precision)
Formats interval like 10 per hour
Details
__construct(DatabaseInterface $dbi, ExpressionLanguage $expression)
No description
void
setVariable(string|int $variable, mixed $value)
No description
array
getRunResult()
No description
array
run()
No description
void
addRule(string $type, array $rule)
Adds a rule to the result list
static string
byTime(float $num, int $precision)
Formats interval like 10 per hour