blob: 11e6f7264380f23281ed8939877a9bb983999013 (
plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<?php
class Optlist extends Opt
{
protected $description = 0;
protected $thumbnail = 0;
protected $date = 0;
protected $author = 0;
protected $style = 0;
public function parsehydrate(string $encoded)
{
if(is_string($encoded)) {
parse_str($encoded, $datas);
$this->hydrate($datas);
}
}
/**
* Get the code to insert directly
*/
public function getcode() : string
{
return '%LIST?' . $this->getquery() . '%';
}
// _______________________________________ G E T _____________________________________
public function description()
{
return $this->description;
}
public function thumbnail()
{
return $this->thumbnail;
}
public function date()
{
return $this->date;
}
public function author()
{
return $this->author;
}
public function style()
{
return $this->style;
}
// _______________________________________ S E T _____________________________________
public function setdescription($description)
{
$this->description = intval($description);
}
public function setthumbnail($thumbnail)
{
$this->thumbnail = intval($thumbnail);
}
public function setdate($date)
{
$this->date = intval($date);
}
public function setauthor($author)
{
$this->author = intval($author);
}
public function setstyle($style)
{
$this->style = intval($style);
}
}
?>
|