public function isReplicaSet($datasource)
    {
        if (array_key_exists($datasource,$this->dataSources))
        {
            if(array_key_exists("replicaSet",$this->dataSources[$datasource]) && !empty($this->dataSources[$datasource]["replicaSet"])) {
                return true;
            }
        }

        return false;
    }
public function isReplicaSet($datasource)
    {
        if (array_key_exists($datasource,$this->dataSources))
        {
            if(array_key_exists("replicaSet",$this->dataSources[$datasource]) && !empty($this->dataSources[$datasource]["replicaSet"])) {
                return true;
            }
        }

        return false;
    }
public function isReplicaSet ( $ datasource ) { if ( array_key_exists ( $ datasource , $ this -> dataSources ) ) { if ( array_key_exists ( "replicaSet" , $ this -> dataSources [ $ datasource ] ) && ! empty ( $ this -> dataSources [ $ datasource ] [ "replicaSet" ] ) ) { return true ; } } return false ; }
Returns a boolean reflecting whether or not a replica set has been defined for the supplied database name
@param $datasource
@return bool
Returns a boolean reflecting whether or not a replica set has been defined for the supplied database name