Show
Ignore:
Timestamp:
04/14/07 21:30:40 (2 years ago)
Author:
mikey
Message:

added net.stubbles.rdbms.stubDatabaseConnectionPool::getConnectionDataIds()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/rdbms/stubDatabaseConnectionPool.php

    r400 r527  
    3232     */ 
    3333    protected static $connectionData = array(); 
    34      
     34 
    3535    /** 
    3636     * returns a connection 
     
    6565        return self::$connections[$id]; 
    6666    } 
    67      
     67 
    6868    /** 
    6969     * adds connection data to the list of known connection data 
     
    7575        self::$connectionData[$connectionData->getId()] = $connectionData; 
    7676    } 
    77      
     77 
    7878    /** 
    7979     * checks whether connection data for a given id is available 
     
    8686        return isset(self::$connectionData[$id]); 
    8787    } 
    88      
     88 
    8989    /** 
    9090     * returns the connection data for a given id 
     
    101101        return null; 
    102102    } 
    103      
     103 
     104    /** 
     105     * returns a list of all ids of all connection data objects in the pool 
     106     * 
     107     * @return  array<string> 
     108     */ 
     109    public static function getConnectionDataIds() 
     110    { 
     111        return array_keys(self::$connectionData); 
     112    } 
     113 
    104114    /** 
    105115     * removes the connection data with the given id 
     
    111121        if (isset(self::$connectionData[$id]) == true) { 
    112122            self::$connectionData[$id] = null; 
     123            unset(self::$connectionData[$id]); 
    113124        } 
    114125    } 
    115      
     126 
    116127    /** 
    117128     * closes the connection with the given id 
     
    128139        } 
    129140    } 
    130      
     141 
    131142    /** 
    132143     * sets a connection for the given id