Code

Added string widget
[gosa.git] / gosa-plugins / goto / admin / systems / goto / Config / class_TemplateWidget_string.inc
1 <?php
3 class TemplateWidget_string extends TemplateWidget
4 {
5     protected $name = "unnamed";
6     protected $value = "";
8     protected $description = "";
9     protected $required = "";
10     protected $type = "";
11     protected $display = "";
13     function __construct(&$config, $name, $value, $description,$required,$type,$display)
14     {
15         $this->config = &$config;
16         $this->name = $name;
17         $this->value = $value;
18         $this->description = $description;
19         $this->required = $required;
20         $this->type = $type;
21         $this->display = $display;
22         $class = get_class();
23         $this->postName = "{$class}_{$this->name}";
24     }
27     function render()
28     {
29         return("");
30     }
32     function save_object()
33     {
34     }
36     function getValue()
37     {
38         return($this->value);
39     }
41     function getName()
42     {
43         return($this->name);
44     }
46     function setValue($value)
47     {
48         $this->value = $value;
49     }
51 }
53 ?>