irm-1.6-b3/lib/Databases.php
/** Return the list of defined databases.
     * @return array A hash of dbid => name pairs
     */
Return the list of defined databases.
@return array A hash of dbid => name pairs
Return the list of defined databases . @return array A hash of dbid = > name pairs
function All()
    {
        $data = Config::ReadConfig('database');
        $rv = array();
        foreach ($data as $id => $vals)
        {
            $name = @$vals['name'];
            if (!$name)
            {
                $name = _("Unknown database");
            }
            $rv[$id] = $name;
        }
        return $rv;
    }
function All ( ) { $ data = Config :: ReadConfig ( 'database' ) ; $ rv = array ( ) ; foreach ( $ data as $ id => $ vals ) { $ name = @ $ vals [ 'name' ] ; if ( ! $ name ) { $ name = _ ( " Unknown database " ) ; } $ rv [ $ id ] = $ name ; } return $ rv ; }
Return the list of defined databases.
Return the list of defined databases .