summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorSebastian Schmelzer2012-01-11 16:10:33 +0100
committerSebastian Schmelzer2012-01-11 16:10:33 +0100
commit67f79af21fcb3737c31980704569109d9c271fb7 (patch)
treeab3c3d627c0687296dd1fb2ecabe15af98375a13 /public
parentfix stupid checkstyle bugs .. once again.. (diff)
downloadpbs2-67f79af21fcb3737c31980704569109d9c271fb7.tar.gz
pbs2-67f79af21fcb3737c31980704569109d9c271fb7.tar.xz
pbs2-67f79af21fcb3737c31980704569109d9c271fb7.zip
cleanup
Diffstat (limited to 'public')
-rw-r--r--public/settergetter.php55
1 files changed, 30 insertions, 25 deletions
diff --git a/public/settergetter.php b/public/settergetter.php
index e18b643..42cda16 100644
--- a/public/settergetter.php
+++ b/public/settergetter.php
@@ -1,28 +1,30 @@
<?php
/*
* Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg
- * This program is free software distributed under the GPL version 2.
- * See http://gpl.openslx.org/
- *
- * If you have any feedback please consult http://feedback.openslx.org/ and
- * send your suggestions, praise, or complaints to feedback@openslx.org
- *
- * General information about OpenSLX can be found at http://openslx.org/
- */
-function print_a($v) {echo"<pre style='background-color:#FFCC33'>"; print_r($v); echo"</pre>";}
+* This program is free software distributed under the GPL version 2.
+* See http://gpl.openslx.org/
+*
+* If you have any feedback please consult http://feedback.openslx.org/ and
+* send your suggestions, praise, or complaints to feedback@openslx.org
+*
+* General information about OpenSLX can be found at http://openslx.org/
+*/
+function print_a($v) {
+ echo"<pre style='background-color:#FFCC33'>"; print_r($v); echo"</pre>";
+}
function setget($name) {
$withdash = $name;
$withoutdash = substr($name, 1);
return
- ' public function get'.ucfirst($withoutdash).'()
- {
- return $this->'.$withdash.';
- }
- public function set'.ucfirst($withoutdash).'($'.$withdash.')
+ ' public function get'.ucfirst($withoutdash).'()
{
- $this->'.$withdash.' = $'.$withdash.';
- }
- ';
+ return $this->'.$withdash.';
+}
+public function set'.ucfirst($withoutdash).'($'.$withdash.')
+{
+$this->'.$withdash.' = $'.$withdash.';
+}
+';
}
if(isset($_POST['submit'])) {
$ar = explode("\n", trim($_POST['variables']));
@@ -36,13 +38,16 @@ if(isset($_POST['submit'])) {
}
else {
- ? >
- Jeweils ein Variablenname pro Zeile : <br>
- < form method = 'post' action = '<?php $_SERVER['PHP_SELF'];?>' >
- < textarea name = 'variables' >
- < / textarea > <br>
- < input type = 'submit' name = 'submit' value = 'setter und getter generieren' >
- < / form >
- <? php
+ ?>
+
+ Jeweils ein Variablenname pro Zeile :
+ <br>
+ <form method='post' action='<?php $_SERVER['PHP_SELF'];?>'>
+ <textarea name='variables'>
+ </textarea>
+ <br> <input type='submit' name='submit'
+ value='setter und getter generieren'>
+ </form>
+ <?php
}