You are here

function _course_report_index in Course 6

Get many course report records.

1 string reference to '_course_report_index'
_course_report_resource in services/course_report_resource.inc
@file course_report_resource.inc Expose the course report as as service resource.

File

services/course_report_resource.inc, line 98
course_report_resource.inc Expose the course report as as service resource.

Code

function _course_report_index($page, $fields, $parameters, $page_size) {
  $out = array();
  $result = services_resource_build_index_query('course_report', 'date_completed', $page, $fields, $parameters, 'cr', 'id', $page_size, 'course_report');
  while ($row = db_fetch_object($result)) {
    $out[] = $row;
  }
  return services_resource_build_index_list($out, 'course_report', 'id');
}