From 6b570b946ff88a1370c4c0a016b801c9fe420c01 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Fri, 3 Dec 2010 14:26:56 +0000 Subject: [PATCH] --- include/wawi_tags.class.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/wawi_tags.class.php b/include/wawi_tags.class.php index e33821fec..ff18ea4cf 100644 --- a/include/wawi_tags.class.php +++ b/include/wawi_tags.class.php @@ -53,6 +53,31 @@ class wawi_tags extends basis_db $this->load($tag); } + + public function getAll() + { + $qry = "Select * from public.tbl_tag; "; + + if($this->db_query($qry)) + { + while($row = $this->db_fetch_object()) + { + $tag = new wawi_tags(); + + $tag->tag = $row->tag; + + $this->result[] = $tag; + } + return true; + } + else + { + $this->errormsg = "Fehler bei der Abfrage aufgetreten."; + return false; + } + + } + /** * * Gibt die Tags einer Bestellung zurück