diff options
| author | Björn Geiger | 2011-01-24 13:54:48 +0100 |
|---|---|---|
| committer | Björn Geiger | 2011-01-24 13:54:48 +0100 |
| commit | f750f288f4124fbc3c8d6ffcce3ecc1a938d09c7 (patch) | |
| tree | a05047da80464a023f75e5e9bdc45633b637c0fe | |
| parent | randomInsert erneuert, erster Teil des Datenbankmodells mit Personen, Gruppen... (diff) | |
| download | pbs2-f750f288f4124fbc3c8d6ffcce3ecc1a938d09c7.tar.gz pbs2-f750f288f4124fbc3c8d6ffcce3ecc1a938d09c7.tar.xz pbs2-f750f288f4124fbc3c8d6ffcce3ecc1a938d09c7.zip | |
Lösch Test hinzugefügt
| -rw-r--r-- | application/configs/application.ini | 11 | ||||
| -rw-r--r-- | bps-randomDelete.php | 51 |
2 files changed, 57 insertions, 5 deletions
diff --git a/application/configs/application.ini b/application/configs/application.ini index 608848a..5aa767b 100644 --- a/application/configs/application.ini +++ b/application/configs/application.ini @@ -8,11 +8,12 @@ appnamespace = "Application" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.params.displayExceptions = 0 - resources.db.adapter = PDO_MYSQL - resources.db.params.host = localhost - resources.db.params.username = root - resources.db.params.password = lsfks-openslx - resources.db.params.dbname = pbs +[database] +resources.db.adapter = PDO_MYSQL +resources.db.params.host = localhost +resources.db.params.username = root +resources.db.params.password = lsfks-openslx +resources.db.params.dbname = pbs [staging : production] 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(); + + |
