2021-05-05 19:23:09 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Manager{
|
|
|
|
|
|
|
|
//Attributes:
|
|
|
|
private $_id; //Manager ID.
|
|
|
|
private $_username; //Manager username.
|
|
|
|
private $_email; //Email.
|
|
|
|
private $_roll; //Roll
|
|
|
|
|
|
|
|
//Constructor:
|
2021-05-06 12:16:37 +02:00
|
|
|
function __construct($id, $idcinema, $username, $email, $roll){
|
2021-05-05 19:23:09 +02:00
|
|
|
$this->_id = $id;
|
2021-05-06 12:16:37 +02:00
|
|
|
$this->_idcinema = $idcinema;
|
2021-05-05 19:23:09 +02:00
|
|
|
$this->_username = $username;
|
|
|
|
$this->_email = $email;
|
|
|
|
$this->_roll = $roll;
|
|
|
|
}
|
2021-05-09 17:39:27 +02:00
|
|
|
|
2021-05-05 19:23:09 +02:00
|
|
|
//Methods:
|
2021-05-09 17:39:27 +02:00
|
|
|
public static function getManager($id){
|
|
|
|
$bd = new Manager_DAO('complucine');
|
|
|
|
if($bd ) {
|
|
|
|
return $bd->GetManager($id);
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
2021-05-05 19:23:09 +02:00
|
|
|
//Getters && Setters:
|
|
|
|
public function setId($id){ $this->_id = $id; }
|
|
|
|
public function getId(){ return $this->_id; }
|
2021-05-06 12:16:37 +02:00
|
|
|
public function setIdcinema($idcinema){ $this->_idcinema = $idcinema; }
|
|
|
|
public function getIdcinema(){ return $this->_idcinema; }
|
2021-05-05 19:23:09 +02:00
|
|
|
public function setUsername($username){$this->_username = $username; }
|
2021-05-06 12:16:37 +02:00
|
|
|
public function getUsername(){ return $this->_username;}
|
2021-05-05 19:23:09 +02:00
|
|
|
public function setEmail($email){$this->_email = $email;}
|
2021-05-06 12:16:37 +02:00
|
|
|
public function getEmail(){return $this->_email;}
|
2021-05-05 19:23:09 +02:00
|
|
|
public function setRoll($roll){$this->_roll = $roll;}
|
2021-05-06 12:16:37 +02:00
|
|
|
public function getRoll(){return $this->_roll;}
|
2021-05-05 19:23:09 +02:00
|
|
|
|
|
|
|
}
|
2021-05-09 17:39:27 +02:00
|
|
|
?>
|