Strata\Router\RouteParser\Url\UrlRoute

Handles routes generated from REST requests.

    Synopsis

    class UrlRoute extends Route {
    • // constants
    • const DYNAMIC_PARSE = "__strata_dynamic_parse__";
    }

    Hierarchy

    Constants

    Name Value
    DYNAMIC_PARSE "__strata_dynamic_parse__"

    Members

    private

    • $altoRouterAltoRouter
      Altorouter is the library that does the heavy lifting for us.
    • $applicationRoutes — array
    • $automatedRoutes — array
    • $modelRoutes — array

    protected

    • $cancelled — boolean
    • $directExecution

    public

    Methods

    private

    protected

    • assignViewVars() — This function is required to send variables in Wordpress' scope.

    public

    Inherited from Strata\Router\RouteParser\Route

    protected

    public

    • addPossibilities() — Adds a mixed type of possibility against which the route will be validating during the process() step.
    • attemptCompletion()
    • cancel() — Cancels the current route process.
    • end() — Ends the handling of the route.
    • isCancelled() — Specifies whether the current route has been canceled.
    • isValid() — Verifies that the current values can be ran by the router.
    • process() — This is the entry point of all routers. The inheriting classes will handle how they handle the management of their route type from this function.
    • setDirectExecution()
    • start() — Starts the handling of the route.