From d7f3313ff4514e38c9f53439cd1a1287e56e45f7 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 11 Nov 2018 17:19:26 +0100 Subject: reboot folder --- w/class/route.php | 84 ------------------------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 w/class/route.php (limited to 'w/class/route.php') diff --git a/w/class/route.php b/w/class/route.php deleted file mode 100644 index cc2fe59..0000000 --- a/w/class/route.php +++ /dev/null @@ -1,84 +0,0 @@ -hydrate($vars); - } - - public function hydrate($vars) - { - foreach ($vars as $var => $value) { - $method = 'set' . $var; - if (method_exists($this, $method)) { - $this->$method($value); - } - } - } - - public function toarray() - { - $array = []; - if (!empty($this->id)) { - $array[] = 'art'; - } - if (!empty($this->aff)) { - $array[] = 'aff='.$this->aff; - } - if (!empty($this->action)) { - $array[] = 'action=' . $this->action; - } - if (!empty($this->redirect)) { - $array[] = $this->redirect; - } - - - return $array; - } - - function tostring() - { - return implode(' ', $this->toarray()); - } - - - - public function setid($id) - { - $this->id = $id; - } - - public function setaff($aff) - { - $this->aff = $aff; - - } - - public function setaction($action) - { - $this->action = $action; - } - - public function setredirect($redirect) - { - $this->redirect = $redirect; - } - - public function id() - { - return $this->id; - } -} - - - - -?> \ No newline at end of file -- cgit v1.2.3