Comments: on this page. Click to read or post your own.

Class RedirectorPage

Description

A redirector page redirects when the page is visited.

Located in /sapphire/core/model/RedirectorPage.php (line 7)

Page
   |
   --RedirectorPage
Variable Summary
static mixed $add_action
static mixed $db
static mixed $has_one
static mixed $icon
static mixed $many_many
Method Summary
void getCMSFields ()
void Link ()
void redirectionLink ()
void regularLink ()
Variables
static mixed $add_action = "Redirector to another page" (line 8)
static mixed $db = array(
"RedirectionType" => "Enum('Internal,External','Internal')",
"ExternalURL" => "Varchar(255)",
)
(line 11)
static mixed $has_one = array(
"LinkTo" => "SiteTree",
)
(line 16)
static mixed $icon = array("cms/images/treeicons/page-shortcut","file") (line 9)
static mixed $many_many = array(
)
(line 20)
Methods
ContentSource (line 28)

Returns this page if the redirect is external, otherwise returns the target page.

SiteTree ContentSource ()
getCMSFields (line 88)
void getCMSFields ()
Link (line 42)

Return the the link that should be used for this redirector page, in navigation, etc.

If the redirectorpage has been appropriately configured, then it will return the redirection destination, to prevent unnecessary 30x redirections. However, if it's misconfigured, then it will return a link to itself, which will then display an error message.

void Link ()
redirectionLink (line 59)

Return the link that we should redirect to.

Only return a value if there is a legal redirection destination.

void redirectionLink ()
regularLink (line 51)

Return the normal link directly to this page. Once you visit this link, a 30x redirection will take you to your final destination.

void regularLink ()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:44:49 +1300 by phpDocumentor 1.3.2