$dsn = $this->bwcfg->Get_Dsn( $this->catalog_current_id );
// Connect to the database
- $options = array( 'portability' => DB_PORTABILITY_ALL );
- $this->db_link = $this->connect( $dsn, $options );
+ $options = array( 'portability' => DB_PORTABILITY_ALL );
+ $this->db_link = $this->connect( $dsn, $options );
if (DB::isError($this->db_link)) {
$this->TriggerDBError('Unable to connect to catalog', $this->db_link);
}
// Return the list of Pools in a array
- public function get_Pools()
+ public function getPools()
{
$pools = array();
$query = "SELECT name, poolid FROM pool";
$vols_by_pool = array();
$graph = new CGraph( "graph1.png" );
-foreach( $dbSql->get_Pools() as $pool )
+foreach( $dbSql->getPools() as $pool )
$vols_by_pool[] = array( $pool['name'], $dbSql->countVolumes( $pool['poolid'] ) );
$graph->SetData( $vols_by_pool, 'pie', 'text-data-single' );