From e802d5204b96d645ec3d40b81b4a8bdc6e0ee675 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 4 Nov 2019 23:31:31 +0100 Subject: refactor: switch to psr-4 autoloading --- app/class/Optlist.php | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 app/class/Optlist.php (limited to 'app/class/Optlist.php') diff --git a/app/class/Optlist.php b/app/class/Optlist.php new file mode 100644 index 0000000..d6a9cdb --- /dev/null +++ b/app/class/Optlist.php @@ -0,0 +1,115 @@ +hydrate($datas); + } + } + + /** + * Get the code to insert directly + */ + public function getcode() : string + { + return '%LIST?' . $this->getquery() . '%'; + } + + + + + // _______________________________________ G E T _____________________________________ + + + public function title() + { + return $this->title; + } + + public function description() + { + return $this->description; + } + + public function thumbnail() + { + return $this->thumbnail; + } + + public function date() + { + return $this->date; + } + + public function time() + { + return $this->time; + } + + public function author() + { + return $this->author; + } + + public function style() + { + return $this->style; + } + + + // _______________________________________ S E T _____________________________________ + + public function settitle($title) + { + $this->title = intval($title); + } + + 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 settime($time) + { + $this->time = intval($time); + } + + public function setauthor($author) + { + $this->author = intval($author); + } + + public function setstyle($style) + { + $this->style = intval($style); + } +} + + + +?> \ No newline at end of file -- cgit v1.2.3