Code

Updated several service dialogs, fixed typos, string, html, post handling and more.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Jul 2010 09:17:03 +0000 (09:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Jul 2010 09:17:03 +0000 (09:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19140 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/services/cups/class_goCupsServer.inc

index 9e42dc807269a1fe45f63f23eebecc4c4af401c3..62a1353dd1834023ed3c0fb9b66c39e579050d70 100644 (file)
@@ -1,89 +1,89 @@
 <?php
 
 class goCupsServer extends goService{
-       
-  var $cli_summary      = "This plugin is used within the ServerService Pluign \nand indicates that this server supports cups management.";
-  var $cli_description  = "Some longer text\nfor help";
-  var $cli_parameters   = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
 
-  /* This plugin only writes its objectClass */
-  var $objectclasses    = array("goCupsServer");
-  var $attributes       = array();
-  var $StatusFlag       = "goCupsServerStatus";
-  /* This class can't be assigned twice so it conflicts with itsself */
-  var $conflicts        = array("goCupsServer");
+    var $cli_summary      = "This plugin is used within the ServerService Pluign \nand indicates that this server supports cups management.";
+    var $cli_description  = "Some longer text\nfor help";
+    var $cli_parameters   = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
 
-  var $DisplayName      = "";
-  var $dn               = NULL;
-  var $acl;
-  var $cn                  = "";
-  var $goCupsServerStatus  = "";
-  var $view_logged  =FALSE;
-  function goCupsServer(&$config,$dn)
-  {
-    goService::goService($config,$dn);
-    $this->DisplayName = _("Print service");
-  }
+    /* This plugin only writes its objectClass */
+    var $objectclasses    = array("goCupsServer");
+    var $attributes       = array();
+    var $StatusFlag       = "goCupsServerStatus";
 
-    
-  function execute()
-  { 
-    if($this->is_account && !$this->view_logged){
-      $this->view_logged = TRUE;
-      new log("view","server/".get_class($this),$this->dn);
+    /* This class can't be assigned twice so it conflicts with itsself */
+    var $conflicts        = array("goCupsServer");
+
+    var $DisplayName      = "";
+    var $dn               = NULL;
+    var $acl;
+    var $cn                  = "";
+    var $goCupsServerStatus  = "";
+    var $view_logged  =FALSE;
+
+    function goCupsServer(&$config,$dn)
+    {
+        goService::goService($config,$dn);
+        $this->DisplayName = _("Print service");
+    }
+
+
+    function execute()
+    { 
+        if($this->is_account && !$this->view_logged){
+            $this->view_logged = TRUE;
+            new log("view","server/".get_class($this),$this->dn);
+        }
+
+        $smarty = get_smarty(); 
+        foreach($this->attributes as $attr){
+            $smarty->assign($attr,set_post($this->$attr));
+        }
+        return($smarty->fetch(get_template_path("goCupsServer.tpl",TRUE,dirname(__FILE__))));
     }
 
-    $smarty = get_smarty(); 
-    foreach($this->attributes as $attr){
-      $smarty->assign($attr,$this->$attr);
+    function getListEntry()
+    {
+        $fields = goService::getListEntry();
+        $fields['Message']    = _("Print service");
+#$fields['AllowEdit']  = false;
+        return($fields);
     }
-    return($smarty->fetch(get_template_path("goCupsServer.tpl",TRUE,dirname(__FILE__))));
-  }
 
-  function getListEntry()
-  {
-    $fields = goService::getListEntry();
-    $fields['Message']    = _("Print service");
-    #$fields['AllowEdit']  = false;
-    return($fields);
-  }
+    function check()
+    { 
+        $message = plugin::check();
+        return($message);
+    }
 
-  function check()
-  { 
-    $message = plugin::check();
-    return($message);
-  }
-  
-  function save_object()
-  {
-    plugin::save_object();
-  }  
+    function save_object()
+    {
+        plugin::save_object();
+    }  
 
-  /* Return plugin informations for acl handling */
-  static function plInfo()
-  {
-    return (array(
-          "plShortName"   => _("Cups"),
-          "plDescription" => _("Print service")." ("._("Services").")",
-          "plSelfModify"  => FALSE,
-          "plDepends"     => array(),
-          "plPriority"    => 100,
-          "plSection"     => array("administration"),
-          "plCategory"    => array("server"),
-          "plRequirements"=> array(
-              'ldapSchema' => array('goCupsServer' => '>=2.7'),
-              'onFailureDisablePlugin' => array(get_class())
-              ),
+    /* Return plugin informations for acl handling */
+    static function plInfo()
+    {
+        return (array(
+                    "plShortName"   => _("Cups"),
+                    "plDescription" => _("Print service")." ("._("Services").")",
+                    "plSelfModify"  => FALSE,
+                    "plDepends"     => array(),
+                    "plPriority"    => 100,
+                    "plSection"     => array("administration"),
+                    "plCategory"    => array("server"),
+                    "plRequirements"=> array(
+                        'ldapSchema' => array('goCupsServer' => '>=2.7'),
+                        'onFailureDisablePlugin' => array(get_class())
+                        ),
 
-          "plProvidedAcls"=> array(
-            "start"         => _("Start"),
-            "stop"          => _("Stop"),
-            "restart"       => _("Restart"),
-            )
-          ));
-  }
+                    "plProvidedAcls"=> array(
+                        "start"         => _("Start"),
+                        "stop"          => _("Stop"),
+                        "restart"       => _("Restart"),
+                        )
+                    ));
+    }
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>