From No LJ Ads Wiki
A redirector makes either a GET URL which redirects to a pretty URL or an HTML form which posts to a URL that redirects to a pretty URL. This class exists because it's often desirable to use a form to end up at a URL, instead of doing a GET request. It's also used in cases where finding the previous or next URL would incur database overhead which would be wasteful, considering most people don't click previous/next links. Instead, the system will give you a Redirector object which has a URL that'll do the lookup for you later, followed by a redirect.
[edit] Members
string type
| (Read-only)
|
string url
| (Read-only)
|
string user
| (Read-only)
|
string vhost
| (Read-only)
|
[edit] Methods
end_form() : void
| Prints a form close tag.
|
get_url(string redir_key) : void
| Returns a GET URL, given a redir_key
|
print_hiddens() : void
| Prints the necessary hidden elements for a form. Called automatically by Redirector.start_form().
|
start_form() : void
| Starts an inline HTML form, then calls Redirector.print_hiddens(). You can also make it yourself, using Redirector.url, if you need special form attributes.
|