Add files via upload

This commit is contained in:
Fernando Méndez
2021-07-02 17:58:01 +02:00
committed by GitHub
parent 842366141c
commit 8a3d41d2d5
78 changed files with 10728 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;
}
}
?>