services_resource_execute_index_query

  1. services
    1. 7.3
Versions
7.3 services_resource_execute_index_query($query)

Helper function to execute a index query.

Parameters

$query Object dbtng query object.

▾ 5 functions call services_resource_execute_index_query()

_comment_resource_index in resources/comment_resource.inc
Return an array of optionally paged cids baed on a set of criteria.
_file_resource_index in resources/file_resource.inc
Return an array of optionally paged fids baed on a set of criteria.
_node_resource_index in resources/node_resource.inc
Return an array of optionally paged nids baed on a set of criteria.
_taxonomy_term_resource_index in resources/taxonomy_resource.inc
Return an array of optionally paged tids baed on a set of criteria.
_user_resource_index in resources/user_resource.inc
Return an array of optionally paged uids baed on a set of criteria.

Code

./services.module, line 550

<?php
function services_resource_execute_index_query($query) {
  try {
    return $query->execute();
  }
  catch (Exception $e) {
    return services_error(t('Invalid query provided, double check that the fields and parameters you defined are correct and exist. ' . $e->message()), 406);
  }
}
?>