Code

Added a first set of reference changes - nearly untested
[gosa.git] / plugins / admin / systems / class_goSyslogServer.inc
1 <?php
3 require_once("class_goService.inc");
5 class goSyslogServer extends goService{
6         
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";
15  
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  = "";
24   var $view_logged  =FALSE;
25  
26   function goSyslogServer(&$config,$dn)
27   {
28     goService::goService($config,$dn);
29     $this->DisplayName = _("Logging service");
30   }
33   function execute()
34   { 
35     if($this->is_account && !$this->view_logged){
36       $this->view_logged = TRUE;
37       new log("view","server/".get_class($this),$this->dn);
38     }
41     $smarty = get_smarty(); 
42     return($smarty->fetch(get_template_path("goSyslogServer.tpl",TRUE,dirname(__FILE__))));
43   }
46   function getListEntry()
47   {
48     $fields               = goService::getListEntry();
49     $fields['Message']    = _("Logging service");
50     $fields['AllowEdit']  = false;
51     return($fields);
52   }
54   function check()
55   { 
56     $message = plugin::check();
57     return($message);
58   }
61   function save_object()
62   {
63     plugin::save_object();
64   } 
66   /* Return plugin informations for acl handling */
67   function plInfo()
68   {
69     return (array(
70           "plShortName"   => _("Logging service"),
71           "plDescription" => _("Logging service")." ("._("Services").")",
72           "plSelfModify"  => FALSE,
73           "plDepends"     => array(),
74           "plPriority"    => 88,
75           "plSection"     => array("administration"),
76           "plCategory"    => array("server"),
78           "plProvidedAcls"=> array()
79           ));
80   }
83 }
84 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
85 ?>