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

Class: StaticController

Source Location: /controllers/static_controller.php

Class Overview

Controller
   |
   --StaticController

This controller is used by the Yioop web site to display static pages.


Author(s):

  • Chris Pollett

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 46]
This controller is used by the Yioop web site to display static pages.



Tags:

author:  Chris Pollett


[ Top ]


Class Variables

$activities = array("show_page")

[line 63]

Says which activities (roughly methods invoke from the web)

this controller will respond to



Type:   array


[ Top ]

$models = array()

[line 52]

Says which models to load for this controller.


Type:   array
Overrides:   Array


[ Top ]

$views = array("static")

[line 57]

Says which views to load for this controller.


Type:   array
Overrides:   Array


[ Top ]



Class Methods


method processRequest [line 69]

void processRequest( )

This is the main entry point for handling people arriving to the SeekQuarry site.



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

[ Top ]

method show_page [line 103]

array show_page( )

This activity is used to display one of a set of static pages used by the Yioop Web Site



Tags:

return:  has which static page to display


[ Top ]


Documentation generated by phpDocumentor 1.4.3