Static Public Member Functions | |
| static | add_system_rules ($rules) |
| static | get_active () |
| static | sort_rules ($rewrite_rules) |
| static | by_name ($name) |
Static Protected Attributes | |
| static | $sorted_rules_cache = null |
Class for storing and retrieving rewrite rules from the DB.
Definition at line 10 of file rewriterules.php.
| static RewriteRules::add_system_rules | ( | $ | rules | ) | [static] |
Add pre-defined rules to an array of rules only if rules with their names don't already exist
| array | $rules An array of RewriteRule objects |
Definition at line 21 of file rewriterules.php.
Referenced by get_active().
| static RewriteRules::by_name | ( | $ | name | ) | [static] |
Get a RewriteRule by its name
| string | $name The name of the rule |
Definition at line 183 of file rewriterules.php.
Referenced by URL::set_404().
| static RewriteRules::get_active | ( | ) | [static] |
Return the active rewrite rules, both in the database and applied by plugins
Definition at line 125 of file rewriterules.php.
Referenced by by_name().
| static RewriteRules::sort_rules | ( | $ | rewrite_rules | ) | [static] |
Helper function for sorting rewrite rules by priority.
Required because plugins would insert their rules at the end of the array, which would allow any other rule (including the one that executes by default when no other rules work) to execute first.
| array | $rewrite_rules An array of RewriteRules |
Definition at line 159 of file rewriterules.php.
Referenced by get_active().
1.7.1