-
Notifications
You must be signed in to change notification settings - Fork 0
/
bookmark.inc.php
39 lines (31 loc) · 889 Bytes
/
bookmark.inc.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
<?php
class bookmark {
/* Attributes */
private $title;
private $link;
private $description;
private $tags;
private $dateLastModified;
/* create a Bookmark */
function __construct($title, $link, $description, $tags, $dateLastModified)
{
$this->title = $title;
$this->link = $link;
$this->description = $description;
$this->tags = $tags;
$this->dateLastModified = $dateLastModified;
}
public function __get($property) {
if (property_exists($this, $property)) {
return $this->$property;
}
}
/* Kontroll-Ausgabe der Daten eines Bookmarks */
/* function __toString()
{
$output = "Title: $this->title, ";
$output .= "Link: $this->link, ";
$output .= "Description: $this->description";
return($output);
}*/
}