src/bbn/appui/project.php
public function get_root_path($repository){
    if ( \is_string($repository) ){
      $repository = $this->repository($repository);
    }
    if ( !empty($repository) && !empty($repository['bbn_path']) ){
      $repository_path = !empty($repository['path']) ? '/' . $repository['path'] : '';
      $path = self::decipher_path($repository['bbn_path'] . $repository_path) . '/';
      return \bbn\str::parse_path($path);
    }
    return false;
  }
public function get_root_path($repository){
    if ( \is_string($repository) ){
      $repository = $this->repository($repository);
    }
    if ( !empty($repository) && !empty($repository['bbn_path']) ){
      $repository_path = !empty($repository['path']) ? '/' . $repository['path'] : '';
      $path = self::decipher_path($repository['bbn_path'] . $repository_path) . '/';
      return \bbn\str::parse_path($path);
    }
    return false;
  }
public function get_root_path ( $ repository ) { if ( \ is_string ( $ repository ) ) { $ repository = $ this -> repository ( $ repository ) ; } if ( ! empty ( $ repository ) && ! empty ( $ repository [ 'bbn_path' ] ) ) { $ repository_path = ! empty ( $ repository [ 'path' ] ) ? '/' . $ repository [ 'path' ] : '' ; $ path = self :: decipher_path ( $ repository [ 'bbn_path' ] . $ repository_path ) . '/' ; return \ bbn \ str :: parse_path ( $ path ) ; } return false ; }
Gets the real root path from a repository's id as recorded in the options.

@param string|array $repository The repository's name (code) or the repository's configuration
@return bool|string
Gets the real root path from a repository s id as recorded in the options .