Index

FilterPath

MMO\core\helpers · 1 symbol · generated 30 Sep 2026

class

FilterPath

Filter.php:516

A reference to another path in the SAME data being tested, e.g. {#lastname} inside a condition means "the value at data['lastname']", resolved fresh on every Filter::test call (so it stays correct even if the data changes between calls).

class MMO\core\helpers\FilterPath implements JsonSerializable, Stringable
Namespace
MMO\core\helpers
Implements
JsonSerializable, Stringable
new FilterPath('{#lastname}'); // ->path === 'lastname'

Properties1

Methods4

__construct($path)

Filter.php:519
function __construct(string $path)
$pathstringeither the bare path, or the '{#path}' wrapped form (the wrapper is stripped)

__toString()

Filter.php:538
function __toString(): string
returnsstringthe wrapped form, e.g. '{#lastname}'