interface RestWSQueryResourceControllerInterface in RESTful Web Services 7.2
Specifies query methods for resources.
Hierarchy
- interface \RestWSResourceControllerInterface
- interface \RestWSQueryResourceControllerInterface
Expanded class hierarchy of RestWSQueryResourceControllerInterface
All classes that implement RestWSQueryResourceControllerInterface
File
- ./
restws.entity.inc, line 94 - RESTful web services module integration for entities.
View source
interface RestWSQueryResourceControllerInterface extends RestWSResourceControllerInterface {
/**
* Query for a list of resources.
*
* @param array $filters
* A list of properties to query for, or an empty array if all resources
* should be counted.
* @param array $meta_controls
* See restws_meta_controls()
*
* @return array
* An array containing the ids of the matching resources.
*/
public function query($filters = array(), $meta_controls = array());
/**
* Returns the number of resources available with the given filters.
*
* @param array $filters
* A list of properties to query for, or an empty array if all resources
* should be returned.
*
* @return int
* The number of resources available.
*/
public function count($filters = array());
/**
* Returns the limit for the current query.
*
* @param int $client_limit
* The limit specified in the meta controls or NULL if not set.
*
* @return int
* The limit of the current limit.
*/
public function limit($client_limit = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RestWSQueryResourceControllerInterface:: |
public | function | Returns the number of resources available with the given filters. | 1 |
RestWSQueryResourceControllerInterface:: |
public | function | Returns the limit for the current query. | 1 |
RestWSQueryResourceControllerInterface:: |
public | function | Query for a list of resources. | 1 |
RestWSResourceControllerInterface:: |
public | function | Determines access for a given operation and resource. | 2 |
RestWSResourceControllerInterface:: |
public | function | Create a new resource. | 2 |
RestWSResourceControllerInterface:: |
public | function | Delete an existing resource. | 2 |
RestWSResourceControllerInterface:: |
public | function | Returns the property info for the given resource. | 2 |
RestWSResourceControllerInterface:: |
public | function | Returns an existing resource. | 2 |
RestWSResourceControllerInterface:: |
public | function | Returns the name of the resource. | 2 |
RestWSResourceControllerInterface:: |
public | function | Update an existing resource. | 2 |
RestWSResourceControllerInterface:: |
public | function | Returns a metadata wrapper for the resource with the given id. | 2 |