Overview

Classes

  • Bright
  • BrightWoocommerceConstants
  • BrightWoocommerceIntegration
  • WoocommerceExtensions

Functions

  • bright_add_quicktags
  • bright_add_token_tag
  • bright_call_api_for_course
  • bright_check_compat
  • bright_curl
  • bright_curl_error
  • bright_echo_message
  • bright_extract_embed_code
  • bright_fetch_template_text
  • bright_fetch_user_attributes
  • bright_get_authentication_code_for_user
  • bright_get_avatar_url
  • bright_get_course_data
  • bright_get_course_list_with_registrations
  • bright_get_course_providers
  • bright_get_registration_data
  • bright_get_registration_list
  • bright_get_reportage_urls
  • bright_get_template_data
  • bright_get_user
  • bright_learning_paths_load_bright_customization_scripts
  • bright_load_custom_wp_admin_style
  • bright_load_scripts
  • bright_log
  • bright_manage_woocommerce_order
  • bright_menu_admin
  • bright_menu_overview
  • bright_menu_settings
  • bright_menu_sync
  • bright_message
  • bright_register_user_to_course
  • bright_render_as_javascript
  • bright_reset_token
  • bright_results_matrix
  • bright_return_as_javascript
  • bright_rewrite_embed_code
  • bright_run_stored_query
  • bright_set_current_course_provider
  • bright_shortcode_func
  • bright_stop
  • bright_stub
  • bright_support
  • bright_template_pack_load_bright_customization_scripts
  • bright_template_pack_load_bright_customization_styles
  • bright_update_all_users
  • bright_update_realmuser_meta
  • bright_update_user_licenses
  • bright_update_user_meta
  • btp_create_header_text
  • dump_bright_js_for_footer
  • setup_bright_menu
  • Overview
  • Class
 1: <?php
 2: 
 3: global $bright_embedder_templates;
 4: 
 5: $bright_embedder_templates['bright_results_matrix'] = <<<EOF
 6:   <div class="bright-results-matrix">
 7:     <table class="bright-results-matrix">
 8:       <thead>
 9:         <th>Learner</th>
10:         <th>Course</th>
11:         <th>Complete</th>
12:         <th>Success</th>
13:         <th>Score</th>
14:         <th>Completed At</th>
15:       </thead>
16:       {{#each this.custom}}
17:          <tr>
18:            <td>{{this.[0]}}</td>
19:            <td>{{this.[1]}}</td>
20:            <td>{{this.[2]}}</td>
21:            <td>{{this.[3]}}</td>
22:            <td>{{this.[4]}}</td>
23:            <td>{{this.[5]}}</td>
24:          </tr>
25:       {{/each}}
26:     </table>
27:   </div>
28: EOF;
29: 
30: add_filter('bright_extend_on_courselist','bright_results_matrix',1,2);
31: 
32: function bright_results_matrix($coursedata,$attr) {
33:   return ($attr['template'] == "bright_results_matrix") ? bright_run_stored_query('bright_completion_matrix','') : $coursedata;
34: }
35:   
36: 
API documentation generated by ApiGen