modules/archi/includes/archiAdresse.class.php
public function getIdQuartier($idSousQuartier)
    {
        $idQuartier = null;
        if (!isset($idSousQuartier) && $idSousQuartier != '') {
            echo "Error while getting neighborhood id, no sub neighborhood informations were specified for this request.";
        } else {
            $req = "
    				SELECT idQuartier
    				FROM sousQuartier
    				WHERE idSousQuartier = ".$idSousQuartier."
    				";
            $res = $this->connexionBdd->requete($req);
            $fetchQuartier = mysql_fetch_assoc($res);
            $idQuartier = $fetchQuartier['idQuartier'];
        }
        return $idQuartier;
    }
public function getIdQuartier($idSousQuartier)
    {
        $idQuartier = null;
        if (!isset($idSousQuartier) && $idSousQuartier != '') {
            echo "Error while getting neighborhood id, no sub neighborhood informations were specified for this request.";
        } else {
            $req = "
    				SELECT idQuartier
    				FROM sousQuartier
    				WHERE idSousQuartier = ".$idSousQuartier."
    				";
            $res = $this->connexionBdd->requete($req);
            $fetchQuartier = mysql_fetch_assoc($res);
            $idQuartier = $fetchQuartier['idQuartier'];
        }
        return $idQuartier;
    }
public function getIdQuartier ( $ idSousQuartier ) { $ idQuartier = null ; if ( ! isset ( $ idSousQuartier ) && $ idSousQuartier != '' ) { echo "Error while getting neighborhood id, no sub neighborhood informations were specified for this request." ; } else { $ req = "
    				SELECT idQuartier
    				FROM sousQuartier
    				WHERE idSousQuartier = " . $ idSousQuartier . "
    				" ; $ res = $ this -> connexionBdd -> requete ( $ req ) ; $ fetchQuartier = mysql_fetch_assoc ( $ res ) ; $ idQuartier = $ fetchQuartier [ 'idQuartier' ] ; } return $ idQuartier ; }
Get the id of a neighborhood from the id of a street

@param int $idSousQuartier : id of the sub neighborhood
@return int  $idQuartier :  id of the neighborhood (or null if error occurs)
Get the id of a neighborhood from the id of a street