4ab97ed61c85d677d45f5c42ce42deb4614971d1
1 <?php
3 class servdhcp 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 $ignore_account= TRUE;
12 var $attributes= array();
13 var $objectclasses= array("whatever");
15 var $dialog ;
17 function servdhcp ($config, $dn= NULL)
18 {
19 plugin::plugin ($config, $dn);
20 $this->dialog = new baseSelectDialog($config);
21 }
23 function execute()
24 {
25 /* Fill templating stuff */
26 $smarty= get_smarty();
27 $display= "";
29 $this->dialog->save_object();
30 if($this->dialog->isSelected()){
31 $base = $this->dialog->isSelected();
32 }
33 if($this->dialog->isClosed()){
34 echo "blub";
35 }
36 echo $base;
37 return($this->dialog->execute());
39 $display.= $smarty->fetch(get_template_path('servdhcp.tpl', TRUE));
40 return($display);
41 }
43 function remove_from_parent()
44 {
45 /* This cannot be removed... */
46 }
49 /* Save data to object */
50 function save_object()
51 {
52 plugin::save_object();
53 }
56 /* Check supplied data */
57 function check()
58 {
59 $message= array();
61 return ($message);
62 }
65 /* Save to LDAP */
66 function save()
67 {
68 plugin::save();
70 /* Optionally execute a command after we're done */
71 #$this->handle_post_events($mode);
72 }
74 }
76 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
77 ?>