protected function sendToAllConnections($command)
    {
        $this->connect();

        $args = array();
        if (func_num_args() > 1) {
            $args = func_get_args();
            array_shift($args);
        }

        $ret = array();
        foreach ($this->connections as $conn) {
            $ret[] = call_user_func_array(array($conn, $command), $args);
        }

        return $ret;
    }
protected function sendToAllConnections($command)
    {
        $this->connect();

        $args = array();
        if (func_num_args() > 1) {
            $args = func_get_args();
            array_shift($args);
        }

        $ret = array();
        foreach ($this->connections as $conn) {
            $ret[] = call_user_func_array(array($conn, $command), $args);
        }

        return $ret;
    }
protected function sendToAllConnections ( $ command ) { $ this -> connect ( ) ; $ args = array ( ) ; if ( func_num_args ( ) > 1 ) { $ args = func_get_args ( ) ; array_shift ( $ args ) ; } $ ret = array ( ) ; foreach ( $ this -> connections as $ conn ) { $ ret [ ] = call_user_func_array ( array ( $ conn , $ command ) , $ args ) ; } return $ ret ; }
Sends the command to all connections in the pool
Sends the command to all connections in the pool