15 $this->jquery->renderView(
"@framework/auth/index.html");
27 $fMessage=
new FlashMessage(
"You are not authorized to access the page <b>".implode(
"/",$urlParts).
"</b> !",
"Forbidden access",
"error",
"warning circle");
30 $this->
loadView(
"@framework/auth/noAccess.html",[
"message"=>$message]);
46 abstract protected function _connect();
48 abstract protected function onConnect($connected);
55 $fMessage=
new FlashMessage(
"Invalid creditentials!",
"Connection problem",
"warning",
"warning circle");
58 $this->
loadView(
"@framework/auth/noAccess.html",[
"message"=>$message]);
67 $fMessage=
new FlashMessage(
"You have been properly disconnected!",
"Logout",
"success",
"checkmark");
70 $this->
loadView(
"@framework/auth/noAccess.html",[
"message"=>$message]);
77 public function info($user){
78 $this->
loadView(
"@framework/auth/info.html",[
"connected"=>$user]);
85 public function message($type,$header,$body,$icon=
"info"){
86 return $this->
loadView(
"@framework/main/message.html",get_defined_vars(),
true);
static isPost()
Returns true if the request is sent by the POST method.
message($type, $header, $body, $icon="info")
badLoginMessage(FlashMessage $fMessage)
terminateMessage(FlashMessage $fMessage)
noAccessMessage(FlashMessage $fMessage)
fMessage(FlashMessage $fMessage)
loadView($viewName, $pData=NULL, $asString=false)
Loads the view $viewName possibly passing the variables $pdata.
static terminate()
Terminates the active session.
static set($key, $value)
Adds or sets a value to the Session at position $key.
static get($key, $default=NULL)
Returns the value stored at the key position in session.
This file is part of Ubiquity framework.