__construct()
__construct()
Constructor.
This function does nothing! This class will not be used, but just derived (see myMVC_BaseAction and myMVC_BaseView)
Generic page class. myMVC_BaseAction and myMVC_BaseView are derived from this class.
getLoggedUser() : \myMVC_BaseLogin
Returns the current logged user, if any.
This function has to be static, then it will normally called from static functions (eg hasUserRightForAction).
The currently logged user, or NULL if no user is logged in, or the user's class is not a subclass of myMVC_BaseLogin
saveParameterForNextPage(string $key, string $value)
Save a variable in the session, to be used by the next page (Action or view).
This variable can be read with the method getParameterFromPreviousPage of the classes BaseAction or BaseView
string | $key | The name of the variable |
string | $value | The value |
isParameterFromPreviousSubmitValid(string $field) : boolean
Returns whether the given parameter of the previous submitted form passed the validation or not.
string | $field | The name of the parameter |
true if the parameter passed the validation, false otherwise