Code

Updated an error message. fixed server acl string
[gosa.git] / plugins / admin / systems / class_goCupsServer.inc
1 <?php
3 require_once("class_goService.inc");
5 class goCupsServer extends goService{
6         
7   var $cli_summary      = "This plugin is used within the ServerService Pluign \nand indicates that this server supports cups management.";
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("goCupsServer");
13   var $attributes       = array();
14   var $StatusFlag       = "goCupsServerStatus";
15  
16   /* This class can't be assigned twice so it conflicts with itsself */
17   var $conflicts        = array("goCupsServer");
19   var $DisplayName      = "";
20   var $dn               = NULL;
21   var $acl;
22   var $cn                  = "";
23   var $goCupsServerStatus  = "";
24  
25   function goCupsServer($config,$dn)
26   {
27     plugin::plugin($config,$dn);
28     $this->DisplayName = _("Print service");
29   }
31   function execute()
32   { 
33     $smarty = get_smarty(); 
34     foreach($this->attributes as $attr){
35       $smarty->assign($attr,$this->$attr);
36     }
37     return($smarty->fetch(get_template_path("goCupsServer.tpl",TRUE,dirname(__FILE__))));
38   }
40   function getListEntry()
41   {
42     $fields = goService::getListEntry();
43     $fields['Message']    = _("Print service");
44     $fields['AllowEdit']  = false;
45     return($fields);
46   }
48   function check()
49   { 
50     $message = plugin::check();
51     return($message);
52   }
53   
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"   => _("Cups"),
64           "plDescription" => _("Print service")." ("._("Services").")",
65           "plSelfModify"  => FALSE,
66           "plDepends"     => array(),
67           "plPriority"    => 100,
68           "plSection"     => array("administration"),
69           "plCategory"    => array("server"),
71           "start"         => _("Start"),
72           "stop"          => _("Stop"),
73           "restart"       => _("Restart"),
75           "plProvidedAcls"=> array()
76           ));
77   }
78 }
79 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
80 ?>