diff --git a/app/models/SOAP.php b/app/models/SOAP.php index c9de818e612e8517f7868f64cada4fd947d2401d..3729ce7f0e3c4072f28ca341ac2b8b88e1bd9c18 100644 --- a/app/models/SOAP.php +++ b/app/models/SOAP.php @@ -9,7 +9,7 @@ class SOAP{ public function __construct($wsdl){ $this->key = SOAP_KEY; - $this->$wsdl = WSDL; + $this->wsdl = WSDL; $this->streamContext = stream_context_create( array( diff --git a/app/models/administrator.php b/app/models/administrator.php index 5ece14ba755fcf63a64bce8b0870fa62c4daeb91..73f013f2133a7a8db88b3c8d3500d3e2cd9458f6 100644 --- a/app/models/administrator.php +++ b/app/models/administrator.php @@ -2,10 +2,6 @@ require_once 'SOAP.php'; class Administrator extends User{ private string $organization; - - private $db; - - private $table; public function __construct(){ $this->db = new Database; diff --git a/app/models/reviewer.php b/app/models/reviewer.php index 87d66380df81c8e2f37a8ac14835da7e311bb139..4a09fc48520eda25de4704f1799f561c47e83fef 100644 --- a/app/models/reviewer.php +++ b/app/models/reviewer.php @@ -3,8 +3,6 @@ class Reviewer extends User{ private string $occupation; private int $score; - private $db; - public function __construct(){ $this->db = new Database; } diff --git a/app/models/student.php b/app/models/student.php index c1e2bb51783fcff888324a6491c852ca85a31042..c1926c7a34afe1e56e902b8b96e383188ff3ed3d 100644 --- a/app/models/student.php +++ b/app/models/student.php @@ -6,8 +6,6 @@ class Student extends User { private string $street; private string $city; private string $zipcode; - private $db; - private $table; public function __construct(){ $this->db = new Database; diff --git a/app/models/superadmin.php b/app/models/superadmin.php index 2e66658b436ad6970ab9f414275e9e9a74ad4859..83fed1beea13f8dc223cb946cf9695afe2ca7b47 100644 --- a/app/models/superadmin.php +++ b/app/models/superadmin.php @@ -1,6 +1,5 @@ <?php class Superadmin extends User{ - private $db; public function __construct(){ $this->db = new Database; } diff --git a/app/models/user.php b/app/models/user.php index 5cf95a66c5ce7c78ffe8f5391db17e9992769fb1..0a3c8c1505012869faf7f3b831a733b370322896 100644 --- a/app/models/user.php +++ b/app/models/user.php @@ -1,14 +1,14 @@ <?php class User{ - private int $userID; - private string $name; - private string $role; - private string $email; - private string $password; - private bool $isVerified; - private string $image; - private $db; - private $table; + protected int $userID; + protected string $name; + protected string $role; + protected string $email; + protected string $password; + protected bool $isVerified; + protected string $image; + protected $db; + protected $table; public function __construct(){ $this->db = new Database;