\Pluf_Precondition

Global system preconditions

Summary

Methods
Properties
Constants
sslRequired()
assertKeyIsValid()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

sslRequired()

sslRequired(  $request) : mixed

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.

Parameters

$request

Returns

mixed

assertKeyIsValid()

assertKeyIsValid(string  $name) 

Checks if given name is matched with patterin [a-zA-Z_][0-9a-zA-Z_]*

Throws bad request exception if given name does not match.

Parameters

string $name

Throws

\Pluf_Exception_BadRequest