You are here

function _course_enrollment_index in Course 6

Get many course enrollments.

1 string reference to '_course_enrollment_index'
_course_enrollment_resource in services/course_enrollment_resource.inc
@file course_enrollment_resource.inc Expose course enrollment as as service resource.

File

services/course_enrollment_resource.inc, line 154
course_enrollment_resource.inc Expose course enrollment as as service resource.

Code

function _course_enrollment_index($page, $fields, $parameters, $page_size) {
  $out = array();
  $result = services_resource_build_index_query('course_enrolment', 'created', $page, $fields, $parameters, 'ce', 'eid', $page_size, 'course_enrollment');
  while ($row = db_fetch_object($result)) {
    $out[] = $row;
  }
  return services_resource_build_index_list($out, 'course_enrollment', 'eid');
}