68fdd380b96f194787ec550a88c734d985a49412
1 <?php
3 class servservice 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();
14 function servservice ($config, $dn= NULL)
15 {
16 plugin::plugin ($config, $dn);
18 /* Always is account... */
19 $this->is_account= TRUE;
20 }
22 function execute()
23 {
24 /* Fill templating stuff */
25 $smarty= get_smarty();
27 return($smarty->fetch (get_template_path('servservice.tpl', TRUE)));
28 }
30 function remove_from_parent()
31 {
32 /* This cannot be removed... */
33 }
36 /* Save data to object */
37 function save_object()
38 {
39 plugin::save_object();
40 }
43 /* Check supplied data */
44 function check()
45 {
46 $message= array();
48 return ($message);
49 }
52 /* Save to LDAP */
53 function save()
54 {
55 plugin::save();
57 /* Optionally execute a command after we're done */
58 #$this->handle_post_events($mode);
59 }
61 }
63 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
64 ?>