Static Public Member Functions | |
| static | loginRequired ($request) |
| static | staffRequired ($request) |
| static | adminRequired ($request) |
| static | hasPerm ($request, $permission) |
| static | sslRequired ($request) |
| static Pluf_Precondition::loginRequired | ( | $ | request | ) | [static] |
Check if the user is logged in.
Returns a redirection to the login page, but if not active returns a forbidden error.
| Pluf_HTTP_Request |
| static Pluf_Precondition::staffRequired | ( | $ | request | ) | [static] |
| static Pluf_Precondition::adminRequired | ( | $ | request | ) | [static] |
| static Pluf_Precondition::hasPerm | ( | $ | request, | |
| $ | permission | |||
| ) | [static] |
Check if the user has a given permission..
| Pluf_HTTP_Request | ||
| string | Permission |
| static Pluf_Precondition::sslRequired | ( | $ | request | ) | [static] |
Requires SSL to access the view.
It will redirect the user to the same URL but over SSL if the user is not using SSL, if POST request, the data are lost, so handle it with care.
| Pluf_HTTP_Request |