summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4bcdbe9)
raw | patch | inline | side by side (parent: 4bcdbe9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2005 05:18:21 +0000 (05:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2005 05:18:21 +0000 (05:18 +0000) |
plugins/gofon/macro/class_gofonMacroParameters.inc | patch | blob | history |
diff --git a/plugins/gofon/macro/class_gofonMacroParameters.inc b/plugins/gofon/macro/class_gofonMacroParameters.inc
index f8f93a19ab9de8848c48de1d609dea0334b2b65b..65f6614ca3034af6bc8a65b580d641f665669056 100755 (executable)
$this->goFonMacroParameter[]=array("name"=>"new","type"=>"string","default"=>"test");
}
-
- #FIXME: Der Transfer der momentanen Variablen muss nach save_object(),
- # damit kann in save() auf den execute() Aufruf verzichtet werden!
-
- /* read out post data, and assign it to the parameters */
- /* And or delete */
- foreach($_POST as $name=>$value){
-
- /* Test if there is a variable begining with "del" */
- if(preg_match("/del/",$name)){
-
- /* Extract entry id to delete */
- $nr = str_replace("del","",$name) ;
-
- /* unset entry */
- unset($this->goFonMacroParameter[$nr]);
-
- }elseif(preg_match("/number/",$name)){
-
- /* Set Post vars */
- $key = $_POST[$name];
- $this->goFonMacroParameter[$key]['name'] = $_POST["varname".$key];
- $this->goFonMacroParameter[$key]['type'] = $_POST["vartype".$key];
- $this->goFonMacroParameter[$key]['default']= $_POST["default".$key];
- }
- }
-
/*generate Table which shows als parameters */
$FonParas = $this->check_paras($content,$this->goFonMacroParameter);
list($sel1, $sel2, $sel3)= array("", "", "");
}
- #FIXME: Der Name des Parameters ist nicht gesetzt
- # -> Argument (ARG#) Name [....] Typ [...^] Default [....]
-
/* Assemble output table */
$vars .="<tr>
<td><input name=\"number".$key."\" value='".$key."' type='hidden'> </td>
if (isset($_POST['phoneparameters'])){
plugin::save_object();
}
+ /* read out post data, and assign it to the parameters */
+ /* And or delete */
+ foreach($_POST as $name=>$value){
+
+ /* Test if there is a variable begining with "del" */
+ if(preg_match("/del/",$name)){
+
+ /* Extract entry id to delete */
+ $nr = str_replace("del","",$name) ;
+
+ /* unset entry */
+ unset($this->goFonMacroParameter[$nr]);
+
+ }elseif(preg_match("/number/",$name)){
+
+ /* Set Post vars */
+ $key = $_POST[$name];
+ $this->goFonMacroParameter[$key]['name'] = $_POST["varname".$key];
+ $this->goFonMacroParameter[$key]['type'] = $_POST["vartype".$key];
+ $this->goFonMacroParameter[$key]['default']= $_POST["default".$key];
+ }
+ }
+
}
{
/* Post checks */
- # FIXME: das hat hier nix zu suchen...
- $this->execute();
-
plugin::save();
$this->attrs['goFonMacroParameter']=array();