public/wordpress/wp-content/plugins/h5p/public/class-h5p-wordpress.php
/**
   * Convert list of file paths to csv
   *
   * @param array $library
   *  Library data as found in library.json files
   * @param string $key
   *  Key that should be found in $libraryData
   * @return string
   *  file paths separated by ', '
   */
Convert list of file paths to csv
@param array $library
Library data as found in library.json files
@param string $key
Key that should be found in $libraryData
@return string
file paths separated by ', '
Convert list of file paths to csv @param array $library Library data as found in library . json files @param string $key Key that should be found in $libraryData @return string file paths separated by ' '
private function pathsToCsv($library, $key) {
    if (isset($library[$key])) {
      $paths = array();
      foreach ($library[$key] as $file) {
        $paths[] = $file['path'];
      }
      return implode(', ', $paths);
    }
    return '';
  }
private function pathsToCsv ( $ library , $ key ) { if ( isset ( $ library [ $ key ] ) ) { $ paths = array ( ) ; foreach ( $ library [ $ key ] as $ file ) { $ paths [ ] = $ file [ 'path' ] ; } return implode ( ', ' , $ paths ) ; } return '' ; }
Convert list of file paths to csv
 @param array $library
  Library data as found in library.json files
 @param string $key
  Key that should be found in $libraryData
 @return string
  file paths separated by ', '
Convert list of file paths to csv @param array $library Library data as found in library . json files @param string $key Key that should be found in $libraryData @return string file paths separated by ' '