Strata\Router\Rewriter

Declares new rewrite rules within Wordpress

    Synopsis

    class Rewriter {
    }

    Members

    private

    • $rewrites — array
      Caches the rewrite rules defined at runtime.

    Methods

    private

    • flush() — Flushes the rewrite rules to the database if the rules look like they have not been saved before hand.

    public

    • addRule() — Adds a rule to the stack
    • applyRules() — Applies the rules that have been defined at runtime. Note that the rules are added in the same order as they have been defined and this may cause racing condition in how rules are applied.
    • getCurrentConfigurationState() — Returns a hash representing the current rewrite configuration.
    • getRules() — Returns the list of defined rewrites.
    • hasRules() — Denotes whether rules have been defined.
    • initialize() — Initialize the rewriter.
    • updateRule() — Updates a predefined rule by index.