-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsuario.php
More file actions
57 lines (45 loc) · 1.16 KB
/
Usuario.php
File metadata and controls
57 lines (45 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
abstract class Usuario{
protected $nome;
protected $senha;
protected $login;
protected $cod;
protected $rg;
function getNome() {
return $this->nome;
}
function getSenha() {
return $this->senha;
}
function getLogin() {
return $this->login;
}
function getCod() {
return $this->cod;
}
function setNome($nome) {
$this->nome = $nome;
}
function setSenha($senha) {
$this->senha = $senha;
}
function setLogin($login) {
$this->login = $login;
}
function setCod($cod) {
$this->cod = $cod;
}
function validar_usuario($login, $senha){
#acesso banco de dados
}
function trocar_senha($senha, $nova_senha,$novaSenha_re){
if($senha === $this->$senha && $nova_senha===$novaSenha_re){
$this->senha=$novaSenha_re;
}
}
}