From b3362d8a86b9e4c3b093944c9ff9dbba3fc2489f Mon Sep 17 00:00:00 2001 From: Markines16 <80280295+Markines16@users.noreply.github.com> Date: Sun, 9 May 2021 17:39:27 +0200 Subject: [PATCH] Update manager.php --- assets/php/common/manager.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/assets/php/common/manager.php b/assets/php/common/manager.php index 6c79ae9..69d5e48 100644 --- a/assets/php/common/manager.php +++ b/assets/php/common/manager.php @@ -16,9 +16,16 @@ $this->_email = $email; $this->_roll = $roll; } - + //Methods: - + public static function getManager($id){ + $bd = new Manager_DAO('complucine'); + if($bd ) { + return $bd->GetManager($id); + } + return ""; + } + //Getters && Setters: public function setId($id){ $this->_id = $id; } public function getId(){ return $this->_id; } @@ -32,4 +39,4 @@ public function getRoll(){return $this->_roll;} } -?> \ No newline at end of file +?>