From f750f288f4124fbc3c8d6ffcce3ecc1a938d09c7 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Mon, 24 Jan 2011 13:54:48 +0100 Subject: Lösch Test hinzugefügt --- bps-randomDelete.php | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 bps-randomDelete.php (limited to 'bps-randomDelete.php') diff --git a/bps-randomDelete.php b/bps-randomDelete.php new file mode 100644 index 0000000..5249cb2 --- /dev/null +++ b/bps-randomDelete.php @@ -0,0 +1,51 @@ +link = mysql_connect('localhost', 'root', 'lsfks-openslx'); + if (!$this->link) { + die('keine Verbindung möglich: ' . mysql_error()); + } + echo 'Verbindung erfolgreich'."\n"; + mysql_select_db('pbs'); + } + + public function __destruct() { + mysql_close($this->link); + unset($this->link); + } + + public function deletePerson($i){ + + } + + public function deleteGroup($i){ + + } + + public function deleteRight($i){ + + } + + public function deleteRole($i){ + + } + + public function deleteMemberships(){ + + } + + public function deleteAll(){ + $this->deleteGroup(10); + $this->deletePerson(20); + $this->deleteRight(20); + $this->deleteRole(20); + $this->delteMemberships(); + } +} + +$u = new deleteClass(); +$u->deleteAll(); + + -- cgit v1.2.3-55-g7522