1 <?php
3 require_once("class_goService.inc");
5 class goSyslogServer extends goService{
7 var $cli_summary = "This plugin is used within the ServerService Pluign \nand indicates that this server has syslog server enabled.";
8 var $cli_description = "Some longer text\nfor help";
9 var $cli_parameters = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
11 /* This plugin only writes its objectClass */
12 var $objectclasses = array("goSyslogServer");
13 var $attributes = array();
14 var $StatusFlag = "goSyslogServerStatus";
16 /* This class can't be assigned twice so it conflicts with itsself */
17 var $conflicts = array("goSyslogServer");
19 var $DisplayName = "";
20 var $dn = NULL;
21 var $acl;
22 var $cn = "";
23 var $goSyslogServerStatus = "";
25 function goSyslogServer($config,$dn)
26 {
27 plugin::plugin($config,$dn);
28 $this->DisplayName = _("Logging service");
29 }
32 function execute()
33 {
34 $smarty = get_smarty();
35 return($smarty->fetch(get_template_path("goSyslogServer.tpl",TRUE,dirname(__FILE__))));
36 }
39 function getListEntry()
40 {
41 $fields = goService::getListEntry();
42 $fields['Message'] = _("Logging service");
43 $fields['AllowEdit'] = false;
44 return($fields);
45 }
47 function check()
48 {
49 $message = plugin::check();
50 return($message);
51 }
54 function save_object()
55 {
56 plugin::save_object();
57 }
59 /* Return plugin informations for acl handling */
60 function plInfo()
61 {
62 return (array(
63 "plShortName" => _("Logging service"),
64 "plDescription" => _("Logging service")." ("._("Services").")",
65 "plSelfModify" => FALSE,
66 "plDepends" => array(),
67 "plPriority" => 88,
68 "plSection" => array("administration"),
69 "plCategory" => array("server"),
71 "plProvidedAcls"=> array()
72 ));
73 }
76 }
77 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
78 ?>