UrlPathStartswithCaseInsensitive
class UrlPathStartswithCaseInsensitive extends UrlPathStartswith (View source)
A case insensitive rule to match beginning of URL
Traits
Path aware trait for rules and bypasses
Methods
Returns the normalised version of the given path
Generates the confirmation item
Generates the unique token depending on the path
Checks the given path by the rules and returns whether it should be protected
Check the request for whether we can bypass the confirmation
Check the request by the rule and return a confirmation item
Details
string
getPath()
Returns the path
$this
setPath(string $path)
Update the path
protected string
normalisePath(string $path)
Returns the normalised version of the given path
__construct(string $path)
Initialize the rule with the path
protected Item
buildConfirmationItem(string $token, string $url)
Generates the confirmation item
protected string
generateToken(string $path)
Generates the unique token depending on the path
protected bool
checkPath(string $path)
Checks the given path by the rules and returns whether it should be protected
bool
checkRequestForBypass(HTTPRequest $request)
Check the request for whether we can bypass the confirmation
null|Item
getRequestConfirmationItem(HTTPRequest $request)
Check the request by the rule and return a confirmation item