Add files via upload

This commit is contained in:
Fernando Méndez
2021-05-17 15:29:29 +02:00
committed by GitHub
parent 4e92236fab
commit 6a9b6cd8a4
72 changed files with 8866 additions and 0 deletions

View File

@ -0,0 +1,38 @@
<?php
class LoginRegisterView {
//Atributes:
private $isLogin;
private $login;
private $register;
//Constructor:
public function __construct() {
$this->setIsLogin(true);
if(array_key_exists('register', $_POST)){
$this->setIsLogin(false);
}
else if(array_key_exists('login', $_POST)){
$this->setIsLogin(true);
}
}
//Methods:
private function setIsLogin($set){
return $this->isLogin = $set;
}
public function getIsLogin(){
return $this->isLogin;
}
public function getLogin(){
return $this->login;
}
public function getRegister(){
return $this->register;
}
}
?>