$request
$request :
Filter class to implement a login system.
It checks if a user is authenticated and, if not, redirect to a login action (derived from myMVC_BaseLoginAction)
__construct(\myMVC_HttpRequest $request, \myMVC_HttpSession $session, \class $calledClass, string $filterType, array $param = array())
Constructor.
\myMVC_HttpRequest | $request | The Request |
\myMVC_HttpSession | $session | The session |
\class | $calledClass | The called class (subclass of myMVC_BaseAction or myMVC_BaseView) |
string | $filterType | Filter type (PREACTION or PREVIEW) |
array | $param | The optional parameters of the filter |
filter() : \myMVC_HttpResponse
Check if the user already logged in.
If not, redirect to the login action (given as parameter)
Response code for an Action or NULL, if the program should continue