Code

Updated handling for phoneGeneric, class name was used as lowercase ('phonegeneric...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Sep 2007 09:21:01 +0000 (09:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Sep 2007 09:21:01 +0000 (09:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7399 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/gosa.conf
plugins/admin/systems/class_phoneGeneric.inc
plugins/admin/systems/class_systemManagement.inc
plugins/admin/systems/tabs_phone.inc

index 5268f15e66f0d7d86ecdf0b28feae922f7683df3..58eac7530c29ad09ab57e18e4448378ecb81ea7a 100644 (file)
        </printtabs>
 
        <phonetabs>
-               <tab class="phonegeneric" name="Generic" />
+               <tab class="phoneGeneric" name="Generic" />
                <tab class="glpiAccount" name="Inventory" />
        </phonetabs>
 
index 1d8ff6c4568c746a0e729602038b67fe253016ae..365aaf5af5360619b8abcc1f10c6390f27af0a56 100644 (file)
@@ -54,7 +54,7 @@ class phoneGeneric extends plugin
 
   var $objectclasses= array("top", "goFonHardware");
 
-  function phonegeneric (&$config, $dn= NULL, $parent= NULL)
+  function phoneGeneric (&$config, $dn= NULL, $parent= NULL)
   {
     plugin::plugin ($config, $dn, $parent);
     $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses, true);
@@ -468,7 +468,7 @@ class phoneGeneric extends plugin
       $this->netConfigDNS->ipHostNumber = $source['ipHostNumber'][0];
     }
 
-    $source_o = new phonegeneric($this->config, $source['dn']);
+    $source_o = new phoneGeneric($this->config, $source['dn']);
     $this->selected_categorie = $source_o->selected_categorie;
   }
 
index 3b2813f8cb88df3ecd35030e43e14a7bc4df4718..bd4fe814a5c25cb1cb5490e3c203ab0029d76797 100644 (file)
@@ -268,7 +268,7 @@ class systems extends plugin
           "workstation" => array("CLASS"=>"WORKTABS",     "TABNAME"=>"workgeneric",     "TABCLASS" =>"worktabs",      "ACL"=> "workstation"),
           "server"      => array("CLASS"=>"SERVTABS",     "TABNAME"=>"servgeneric",     "TABCLASS" =>"servtabs",      "ACL"=> "server"),
           "printer"     => array("CLASS"=>"PRINTTABS",    "TABNAME"=>"printgeneric",    "TABCLASS" =>"printtabs",     "ACL"=> "printer"),
-          "phone"       => array("CLASS"=>"PHONETABS",    "TABNAME"=>"phonegeneric",    "TABCLASS" =>"phonetabs",     "ACL"=> "phone"),
+          "phone"       => array("CLASS"=>"PHONETABS",    "TABNAME"=>"phoneGeneric",    "TABCLASS" =>"phonetabs",     "ACL"=> "phone"),
           "component"   => array("CLASS"=>"COMPONENTTABS","TABNAME"=>"componentgeneric","TABCLASS" =>"componenttabs", "ACL"=> "component"));
 
       if(isset($tabs[$sw])){
@@ -531,7 +531,7 @@ class systems extends plugin
             if($tabtype=="phonetabs"){
               $this->systab= new $tabtype($this->config, $this->config->data['TABS'][$tabobj], $dn,$type);
               $this->systab->set_acl_base($dn);
-              $this->systab->by_object['phonegeneric']->remove_from_parent ();
+              $this->systab->by_object['phoneGeneric']->remove_from_parent ();
             }else{
               $this->systab= new $tabtype($this->config,$this->config->data['TABS'][$tabobj], $dn,$type);
               $this->systab->set_acl_base($dn);
@@ -663,7 +663,7 @@ class systems extends plugin
         if($tabtype=="phonetabs"){
           $this->systab= new $tabtype($this->config, $this->config->data['TABS'][$tabobj], $this->dn,$type);
           $this->systab->set_acl_base($this->dn);
-          $this->systab->by_object['phonegeneric']->remove_from_parent ();
+          $this->systab->by_object['phoneGeneric']->remove_from_parent ();
         }else{  
           $this->systab= new $tabtype($this->config,$this->config->data['TABS'][$tabobj], $this->dn,$type);
           $this->systab->set_acl_base($this->dn);
@@ -1160,7 +1160,7 @@ class systems extends plugin
           "TABCLASS"  =>"servtabs",     "ACL"     =>"server"),
         "printer"     => array( "CLASS"     =>"PRINTTABS",    "TABNAME" =>"printgeneric",    
           "TABCLASS"  =>"printtabs",    "ACL"     =>"printer"),
-        "phone"       => array( "CLASS"     =>"PHONETABS",    "TABNAME" =>"phonegeneric",    
+        "phone"       => array( "CLASS"     =>"PHONETABS",    "TABNAME" =>"phoneGeneric",    
           "TABCLASS"  =>"phonetabs",    "ACL"     =>"phone"),
         "component"   => array( "CLASS"     =>"COMPONENTTABS","TABNAME" =>"componentgeneric",
           "TABCLASS"  =>"componenttabs","ACL"     =>"component"));
index 2c65e6385f5b11f23b865ffe181706f0f2cc8867..13d5ac3c7f125970c8669fecc49f10c6b5e80428 100644 (file)
@@ -21,7 +21,7 @@ class phonetabs extends tabs
   {
     /* Check for new 'dn', in order to propagate the
        'dn' to all plugins */
-    $baseobject= $this->by_object['phonegeneric'];
+    $baseobject= $this->by_object['phoneGeneric'];
     $this->dn= "cn=$baseobject->cn,ou=phones,ou=systems,".$baseobject->base;
     $baseobject->dn= $this->dn;