Method |
Description |
|
afterSave ( boolean $created, $options = [] ) : boolean |
Send need approval email if we need it. |
|
beforeSave ( array $options = [] ) : true |
If saving a regular expression, make sure to mark not approved unless
is_approved is specifically being sent in. |
|
findAllRegexUris ( ) : array |
This is a simple function to return all possible RegEx URIs from the DB
(it has to return all of them, since we can't know which it's going to match)
So we've wrapped the DB request in a simple cache request,
configured by setting the config key cacheEngine |
|
findForViewById ( $id ) : result |
Named scope to find for view |
|
findIdByUri ( $uri = null ) : mixed |
Find the URI id by uri |
|
findRegexUri ( string $request = null ) : array |
Checks an input $request against regex urls |
|
requestMatch ( $request, $uri = null ) : boolean |
Given a request, see if the uri matches. |
|
sendNotification ( $id = null ) : void |
Send the notification of a regular expression that needs approval. |
|
setApproved ( $id = null ) : boolean |
Set as approved |
|
urlEncode ( $id = null ) : boolean |
Url encode the uri |
|