/**
  * Dit si les descendants du type d'infrastructure fourni en paramètre existent
  * @param $type
  * @param bool $construit
  * @return bool
  */
 public function descendantExists($type, $construit = false)
 {
     foreach (Infrastructures::getDescendants($type) as $idType) {
         if ($this->typeExists($idType, $construit)) {
             return true;
         }
     }
     return false;
 }
Exemplo n.º 2
0
?>
;
        var typesUnites = <?php 
echo $typesUnites;
?>
;
        var typesTerrains = <?php 
echo $typesTerrains;
?>
;
        var typesMissions = <?php 
echo $typesMissions;
?>
;
        var typesInfras = <?php 
echo json_encode(Infrastructures::getArrayIndexesId());
?>
;
        var TYPE_INFRA_PONT = <?php 
echo Infrastructures::PONT;
?>
;
        var TYPE_INFRA_ROUTE = <?php 
echo Infrastructures::ROUTE;
?>
;
        var TYPE_INFRA_TRANCHEE = <?php 
echo Infrastructures::TRANCHEE;
?>
;
        var TYPE_INFRA_CASEMATE = <?php