src/bbn/appui/i18n.php
public function get_id_project($id_option, $projects){
    foreach( $projects as $i => $p ){
      foreach ( $projects[$i]['path'] as $idx => $pa ){
        if ( $projects[$i]['path'][$idx]['id_option'] === $id_option ){
          return $projects[$i]['id'];
        }
      }
    }
  }
public function get_id_project($id_option, $projects){
    foreach( $projects as $i => $p ){
      foreach ( $projects[$i]['path'] as $idx => $pa ){
        if ( $projects[$i]['path'][$idx]['id_option'] === $id_option ){
          return $projects[$i]['id'];
        }
      }
    }
  }
public function get_id_project ( $ id_option , $ projects ) { foreach ( $ projects as $ i => $ p ) { foreach ( $ projects [ $ i ] [ 'path' ] as $ idx => $ pa ) { if ( $ projects [ $ i ] [ 'path' ] [ $ idx ] [ 'id_option' ] === $ id_option ) { return $ projects [ $ i ] [ 'id' ] ; } } } }
get the id of the project from the id_option of a path

@param $id_option
@param $projects
@return void
get the id of the project from the id_option of a path