]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: New function Get_Catalogs() in BW_Config classe
authorDavide Franco <bacula-dev@dflc.ch>
Wed, 23 Mar 2011 15:44:01 +0000 (16:44 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:10 +0000 (14:49 +0200)
 - Used in header template to generate option list of catalogs

gui/bacula-web/classes/cfg/config.classe.php

index 6a500c9e98d6893ed4548718eb4825448bab5135..a9273846ebb7666030be597ab09d3933898d7f71 100644 (file)
                        return $config[$param];
        }
        
+       public function Get_Catalogs()
+       {
+               $result = array();
+               foreach( $this->catalogs as $db )
+                       array_push( $result, $db['label']);
+               
+               return $result;
+       }
+       
        public function Count_Catalogs()
        {
                return count( $this->catalogs );