seek_quarry
[ class tree: seek_quarry ] [ index: seek_quarry ] [ all elements ]

Class: ArchiveController

Source Location: /controllers/archive_controller.php

Class Overview

Controller
   |
   --ArchiveController

Fetcher machines also act as archives for complete caches of web pages, this controller is used to handle access to these web page caches


Author(s):

  • Chris Pollett

Implements interfaces:

Variables

Methods


Inherited Variables

Inherited Methods

Class: Controller

Controller::__construct()
Controller::checkCSRFToken()
Checks if the form CSRF (cross-site request forgery preventing) token matches the given user and has not expired (1 hour till expires)
Controller::checkRequest()
Checks the request if a request is for a valid activity and if it uses the correct authorization key
Controller::clean()
Used to clean strings that might be tainted as originate from the user
Controller::displayView()
Send the provided view to output, drawing it with the given data variable, using the current locale for translation, and writing mode
Controller::generateCSRFToken()
Generates a cross site request forgery preventing token based on the provided user name, the current time and the hidden AUTH_KEY
Controller::processRequest()
This function should be overriden to web handle requests

Class Details

[line 51]
Fetcher machines also act as archives for complete caches of web pages, this controller is used to handle access to these web page caches



Tags:

author:  Chris Pollett


[ Top ]


Class Variables

$activities = array("cache")

[line 68]

The only legal activity this controller will accept is a request

for the cache of a web page



Type:   array


[ Top ]

$models = array()

[line 57]

This controller does not make use of any models


Type:   array
Overrides:   Array


[ Top ]

$views = array()

[line 62]

This controller does not make use of any views


Type:   array
Overrides:   Array


[ Top ]



Class Methods


method cache [line 97]

void cache( )

Retrieves the requested page from the WebArchiveBundle and echo it page,

base64 encoded




[ Top ]

method processRequest [line 76]

void processRequest( )

Main method for this controller to handle requests. It first checks the request is valid, and then handles the corresponding activity

For this controller the only activity is to handle a cache request




Overrides Controller::processRequest() (This function should be overriden to web handle requests)

[ Top ]


Documentation generated by phpDocumentor 1.4.3