You are here

interface RestfulDataProviderDbQueryInterface in RESTful 7

@file Contains \RestfulDataProviderDbQueryInterface

Hierarchy

Expanded class hierarchy of RestfulDataProviderDbQueryInterface

All classes that implement RestfulDataProviderDbQueryInterface

File

plugins/restful/RestfulDataProviderDbQueryInterface.php, line 8
Contains \RestfulDataProviderDbQueryInterface

View source
interface RestfulDataProviderDbQueryInterface {

  /**
   * Prepare a query for RestfulEntityBase::getList().
   *
   * @return \SelectQuery
   *   The query object.
   */
  public function getQueryForList();

  /**
   * Prepare a query for RestfulEntityBase::getTotalCount().
   *
   * @return \SelectQuery
   *   The query object.
   *
   * @throws RestfulBadRequestException
   */
  public function getQueryCount();

  /**
   * Helper method to get the total count of entities that match certain
   * request.
   *
   * @return int
   *   The total number of results without including pagination.
   */
  public function getTotalCount();

  /**
   * Prepares the output array from the database row object.
   *
   * @param object $row
   *   The database row object.
   *
   * @return array
   *   The structured array ready to be formatted.
   */
  public function mapDbRowToPublicFields($row);

}

Members

Namesort descending Modifiers Type Description Overrides
RestfulDataProviderDbQueryInterface::getQueryCount public function Prepare a query for RestfulEntityBase::getTotalCount(). 1
RestfulDataProviderDbQueryInterface::getQueryForList public function Prepare a query for RestfulEntityBase::getList(). 1
RestfulDataProviderDbQueryInterface::getTotalCount public function Helper method to get the total count of entities that match certain request. 1
RestfulDataProviderDbQueryInterface::mapDbRowToPublicFields public function Prepares the output array from the database row object. 1