Пример #1
0
 /**
  * Sets connectionid as active node
  * @param string $connectionID named connection
  * @return bool connection id exists and has been set
  */
 public static function setActivePool($poolName)
 {
     if (array_key_exists($poolName, self::$_socketPool)) {
         self::$_activePool = $poolName;
         // grab last node in the pool to set active
         $poolNames = array_keys(self::$_socketPool[$poolName]);
         $connectionID = array_pop($poolNames);
         self::setActiveNode($connectionID);
         return TRUE;
     }
     return FALSE;
 }