summaryrefslogtreecommitdiffstats
path: root/pbs-randomDelete.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-01-24 14:05:32 +0100
committerBjörn Geiger2011-01-24 14:05:32 +0100
commit6fd426c32083cd8758f33c756443432d6646621d (patch)
tree82afb9a24dfad09810bbce764f19d6be67cdcd94 /pbs-randomDelete.php
parentLösch Test hinzugefügt (diff)
downloadpbs2-6fd426c32083cd8758f33c756443432d6646621d.tar.gz
pbs2-6fd426c32083cd8758f33c756443432d6646621d.tar.xz
pbs2-6fd426c32083cd8758f33c756443432d6646621d.zip
randomDelete Datei umbenannt
Diffstat (limited to 'pbs-randomDelete.php')
-rw-r--r--pbs-randomDelete.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/pbs-randomDelete.php b/pbs-randomDelete.php
new file mode 100644
index 0000000..5249cb2
--- /dev/null
+++ b/pbs-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();
+
+