Inheritance diagram for RewriteRule:
Collaboration diagram for RewriteRule:Public Member Functions | |
| __construct ($paramarray=array()) | |
| match ($stub) | |
| build ($args, $useall=true, $noamp=false) | |
| arg_match ($args) | |
| __get ($name) | |
| insert () | |
| update () | |
| delete () | |
Static Public Member Functions | |
| static | default_fields () |
| static | create_url_rule ($build_str, $handler, $action) |
Public Attributes | |
| const | RULE_SYSTEM = 0 |
| const | RULE_THEME = 1 |
| const | RULE_PLUGIN = 2 |
| const | RULE_CUSTOM = 5 |
| $entire_match = null | |
| $named_arg_values = array() | |
Habari RewriteRule Class
Helper class to encapsulate rewrite rule data
Definition at line 13 of file rewriterule.php.
| RewriteRule::__construct | ( | $ | paramarray = array() |
) |
Constructor for the rewrite_rule class.
| array | $paramarray an associative array or querystring of initial field values |
Reimplemented from QueryRecord.
Definition at line 51 of file rewriterule.php.
| RewriteRule::__get | ( | $ | name | ) |
Magic property getter for this class
| string | $name The name of the class property to return |
Reimplemented from QueryRecord.
Definition at line 174 of file rewriterule.php.
| RewriteRule::arg_match | ( | $ | args | ) |
Returns a distance from 0 indicating the appropriateness of the rule based on the passed-in arguments.
| array | $args An array of arguments |
Definition at line 152 of file rewriterule.php.
| RewriteRule::build | ( | $ | args, | |
| $ | useall = true, |
|||
| $ | noamp = false | |||
| ) |
Builds a URL using this rule based on the passed in data
| array | $args An associative array of arguments to use for replacement in the rule | |
| boolean | $useall If true (default), then all passed parameters that are not part of the built URL are tacked onto the URL as querystring |
Definition at line 106 of file rewriterule.php.
| static RewriteRule::create_url_rule | ( | $ | build_str, | |
| $ | handler, | |||
| $ | action | |||
| ) | [static] |
Create an old-style rewrite rule
| string | $build_str | |
| string | $handler | |
| string | $action |
Definition at line 221 of file rewriterule.php.
Referenced by Pluggable::add_rule().
| static RewriteRule::default_fields | ( | ) | [static] |
Returns the defined database columns for a rewrite rule.
Definition at line 30 of file rewriterule.php.
| RewriteRule::delete | ( | ) |
Deletes an existing rule
Reimplemented from QueryRecord.
Definition at line 209 of file rewriterule.php.
| RewriteRule::insert | ( | ) |
Saves a new rewrite rule to the rewrite_rules table
Reimplemented from QueryRecord.
Definition at line 193 of file rewriterule.php.
| RewriteRule::match | ( | $ | stub | ) |
Match the stub against this rule Also sets internal structures based on a successful match
| string | The URL stub to match against |
Definition at line 69 of file rewriterule.php.
| RewriteRule::update | ( | ) |
Updates an existing rule in the rewrite_rules table
Reimplemented from QueryRecord.
Definition at line 201 of file rewriterule.php.
1.7.1