-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass.php
66 lines (57 loc) · 1.43 KB
/
class.php
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
58
59
60
61
62
63
64
65
66
<?php
class Configuration
{
public $host="localhost";
public $dbName="filmovi";
public $username="root";
public $password="";
}
class User
{
public $id="N/A";
public $username="N/A";
public $password="N/A";
public $firstname="N/A";
public $lastname="N/A";
public $email="N/A";
public function __construct($id=null,$username=null,$password=null,$firstname=null,$lastname=null,$email=null)
{
$this->id=$id;
$this->username=$username;
$this->password=$password;
$this->firstname=$firstname;
$this->lastname=$lastname;
$this->email=$email;
}
}
class saved_Movie{
public $id="N/A";
public $title="N/A";
public $rating="N/A";
public $poster="N/A";
public $user_id="N/A";
public $user_rating="N/A";
public function __construct($id=null,$title=null,$rating=null,$poster=null,$user_id=null,$user_rating=null){
$this->id=$id;
$this->title=$title;
$this->rating=$rating;
$this->poster=$poster;
$this->user_id=$user_id;
$this->user_rating=$user_rating;
}
}
class Movie{
public $ID="N/A";
public $Title="N/A";
public $Rating="N/A";
public $Poster="N/A";
public $Date="N/A";
public function __construct($ID=null,$Title=null,$Rating=null,$Poster=null,$Date=null){
$this->ID=$ID;
$this->Title=$Title;
$this->Rating=$Rating;
$this->Poster=$Poster;
$this->Date=$Date;
}
}
?>