Code

Moved to trunk/branches/tags structure
[gosa.git] / plugins / admin / systems / class_servDNS.inc
1 <?php
3 class servdns extends plugin
4 {
5   /* CLI vars */
6   var $cli_summary= "Manage server basic objects";
7   var $cli_description= "Some longer text\nfor help";
8   var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
10   /* attribute list for save action */
11   var $attributes= array();
12   var $objectclasses= array("whatever");
14   function servdns ($config, $dn= NULL)
15   {
16     plugin::plugin ($config, $dn);
17   }
19   function execute()
20   {
21     /* Fill templating stuff */
22     $smarty= get_smarty();
23     $display= "";
25     /* Do we need to flip is_account state? */
26     if (isset($_POST['modify_state'])){
27       $this->is_account= !$this->is_account;
28     }
30     /* Show tab dialog headers */
31     if ($this->is_account){
32       $display= $this->show_header(_("Remove DNS service"),
33           _("This server has DNS features enabled. You can disable them by clicking below."));
34     } else {
35       $display= $this->show_header(_("Add DNS service"),
36           _("This server has DNS features disabled. You can enable them by clicking below."));
37       return ($display);
38     }
40     $display.= $smarty->fetch(get_template_path('servdns.tpl', TRUE));
41     return($display);
42   }
44   function remove_from_parent()
45   {
46     /* This cannot be removed... */
47   }
50   /* Save data to object */
51   function save_object()
52   {
53     plugin::save_object();
54   }
57   /* Check supplied data */
58   function check()
59   {
60     $message= array();
62     return ($message);
63   }
66   /* Save to LDAP */
67   function save()
68   {
69     plugin::save();
71     /* Optionally execute a command after we're done */
72     #$this->handle_post_events($mode);
73   }
75 }
77 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
78 ?>