public/wordpress/wp-content/plugins/h5p/admin/class-h5p-plugin-admin.php
/**
   * Print settings, adds JavaScripts and stylesheets necessary for providing
   * a data view.
   *
   * @since 1.2.0
   * @param string $name of the data view
   * @param string $source URL for data
   * @param array $headers for the table
   */
Print settings, adds JavaScripts and stylesheets necessary for providing
a data view.

@since 1.2.0
@param string $name of the data view
@param string $source URL for data
@param array $headers for the table
Print settings adds JavaScripts and stylesheets necessary for providing a data view . @since 1 . 2 . 0 @param string $name of the data view @param string $source URL for data @param array $headers for the table
public function print_data_view_settings($name, $source, $headers, $filters, $empty, $order) {
    $data_views = array();
    $data_views[$name] = array(
      'source' => $source,
      'headers' => $headers,
      'filters' => $filters,
      'order' => $order,
      'l10n' => array(
        'loading' => __('Loading data.', $this->plugin_slug),
        'ajaxFailed' => __('Failed to load data.', $this->plugin_slug),
        'noData' => __("There's no data available that matches your criteria.", $this->plugin_slug),
        'currentPage' => __('Page $current of $total', $this->plugin_slug),
        'nextPage' => __('Next page', $this->plugin_slug),
        'previousPage' => __('Previous page', $this->plugin_slug),
        'search' => __('Search', $this->plugin_slug),
        'remove' => __('Remove', $this->plugin_slug),
        'empty' => $empty,
      )
    );
    $plugin = H5P_Plugin::get_instance();
    $settings = array('dataViews' => $data_views);
    $plugin->print_settings($settings);
    H5P_Plugin_Admin::add_script('jquery', 'h5p-php-library/js/jquery.js');
    H5P_Plugin_Admin::add_script('event-dispatcher', 'h5p-php-library/js/h5p-event-dispatcher.js');
    H5P_Plugin_Admin::add_script('utils', 'h5p-php-library/js/h5p-utils.js');
    H5P_Plugin_Admin::add_script('data-view', 'h5p-php-library/js/h5p-data-view.js');
    H5P_Plugin_Admin::add_script('data-views', 'admin/scripts/h5p-data-views.js');
    H5P_Plugin_Admin::add_style('admin', 'h5p-php-library/styles/h5p-admin.css');
  }
public function print_data_view_settings ( $ name , $ source , $ headers , $ filters , $ empty , $ order ) { $ data_views = array ( ) ; $ data_views [ $ name ] = array ( 'source' => $ source , 'headers' => $ headers , 'filters' => $ filters , 'order' => $ order , 'l10n' => array ( 'loading' => __ ( 'Loading data.' , $ this -> plugin_slug ) , 'ajaxFailed' => __ ( 'Failed to load data.' , $ this -> plugin_slug ) , 'noData' => __ ( " There's no data available that matches your criteria. " , $ this -> plugin_slug ) , 'currentPage' => __ ( 'Page $current of $total' , $ this -> plugin_slug ) , 'nextPage' => __ ( 'Next page' , $ this -> plugin_slug ) , 'previousPage' => __ ( 'Previous page' , $ this -> plugin_slug ) , 'search' => __ ( 'Search' , $ this -> plugin_slug ) , 'remove' => __ ( 'Remove' , $ this -> plugin_slug ) , 'empty' => $ empty , ) ) ; $ plugin = H5P_Plugin :: get_instance ( ) ; $ settings = array ( 'dataViews' => $ data_views ) ; $ plugin -> print_settings ( $ settings ) ; H5P_Plugin_Admin :: add_script ( 'jquery' , 'h5p-php-library/js/jquery.js' ) ; H5P_Plugin_Admin :: add_script ( 'event-dispatcher' , 'h5p-php-library/js/h5p-event-dispatcher.js' ) ; H5P_Plugin_Admin :: add_script ( 'utils' , 'h5p-php-library/js/h5p-utils.js' ) ; H5P_Plugin_Admin :: add_script ( 'data-view' , 'h5p-php-library/js/h5p-data-view.js' ) ; H5P_Plugin_Admin :: add_script ( 'data-views' , 'admin/scripts/h5p-data-views.js' ) ; H5P_Plugin_Admin :: add_style ( 'admin' , 'h5p-php-library/styles/h5p-admin.css' ) ; }
Print settings, adds JavaScripts and stylesheets necessary for providing
 a data view.
Print settings adds JavaScripts and stylesheets necessary for providing a data view .
// Add JS settings // Add JS