diff options
-rw-r--r-- | library/Pbs/Filter.php | 2 | ||||
-rw-r--r-- | library/Pbs/NewConfig.php | 2 | ||||
-rw-r--r-- | library/Pbs/NewMember.php | 2 | ||||
-rw-r--r-- | library/Pbs/Notifier.php | 2 | ||||
-rw-r--r-- | library/Pbs/Session.php | 2 | ||||
-rw-r--r-- | public/settergetter.php | 55 |
6 files changed, 35 insertions, 30 deletions
diff --git a/library/Pbs/Filter.php b/library/Pbs/Filter.php index 09d55b2..8a55f1b 100644 --- a/library/Pbs/Filter.php +++ b/library/Pbs/Filter.php @@ -435,4 +435,4 @@ class Pbs_Filter { return implode(":", $representation); } } -? > +?> diff --git a/library/Pbs/NewConfig.php b/library/Pbs/NewConfig.php index fd9be42..45f11df 100644 --- a/library/Pbs/NewConfig.php +++ b/library/Pbs/NewConfig.php @@ -67,4 +67,4 @@ class Pbs_NewConfig { } } -? > +?> diff --git a/library/Pbs/NewMember.php b/library/Pbs/NewMember.php index e9766eb..9deb933 100644 --- a/library/Pbs/NewMember.php +++ b/library/Pbs/NewMember.php @@ -72,4 +72,4 @@ class Pbs_NewMember { } } -? > +?> diff --git a/library/Pbs/Notifier.php b/library/Pbs/Notifier.php index 3a82924..8d38786 100644 --- a/library/Pbs/Notifier.php +++ b/library/Pbs/Notifier.php @@ -175,4 +175,4 @@ class Pbs_Notifier { } } -? > +?> diff --git a/library/Pbs/Session.php b/library/Pbs/Session.php index 3f140fc..3d16009 100644 --- a/library/Pbs/Session.php +++ b/library/Pbs/Session.php @@ -45,4 +45,4 @@ class Pbs_Session { } } -? > +?> 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 } |