summaryrefslogtreecommitdiffstats
path: root/bps-randomDelete.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-01-24 13:54:48 +0100
committerBjörn Geiger2011-01-24 13:54:48 +0100
commitf750f288f4124fbc3c8d6ffcce3ecc1a938d09c7 (patch)
treea05047da80464a023f75e5e9bdc45633b637c0fe /bps-randomDelete.php
parentrandomInsert erneuert, erster Teil des Datenbankmodells mit Personen, Gruppen... (diff)
downloadpbs2-f750f288f4124fbc3c8d6ffcce3ecc1a938d09c7.tar.gz
pbs2-f750f288f4124fbc3c8d6ffcce3ecc1a938d09c7.tar.xz
pbs2-f750f288f4124fbc3c8d6ffcce3ecc1a938d09c7.zip
Lösch Test hinzugefügt
Diffstat (limited to 'bps-randomDelete.php')
-rw-r--r--bps-randomDelete.php51
1 files changed, 51 insertions, 0 deletions
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 @@
+<?php
+class deleteClass{
+ private $link;
+
+ public function __construct() {
+ $this->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();
+
+