You are here

interface DataProviderDbQueryInterface in RESTful 7.2

Hierarchy

Expanded class hierarchy of DataProviderDbQueryInterface

All classes that implement DataProviderDbQueryInterface

File

src/Plugin/resource/DataProvider/DataProviderDbQueryInterface.php, line 10
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDbQueryInterface.

Namespace

Drupal\restful\Plugin\resource\DataProvider
View source
interface DataProviderDbQueryInterface extends DataProviderInterface {

  /**
   * Get the name of the table to query.
   *
   * @return string
   *   The name of the table to query.
   */
  public function getTableName();

  /**
   * Set the name of the table to query.
   *
   * @param string $table_name
   *   The name of the table to query.
   */
  public function setTableName($table_name);

  /**
   * Gets the primary field.
   *
   * @return string
   *   The field name.
   */
  public function getPrimary();

  /**
   * Sets the primary field.
   *
   * @param string $primary
   *   The field name.
   */
  public function setPrimary($primary);

  /**
   * Checks if the current field is the primary field.
   *
   * @param string $field_name
   *   The column name to check.
   *
   * @return bool
   *   TRUE if it is the primary field, FALSE otherwise.
   */
  public function isPrimaryField($field_name);

}

Members

Namesort descending Modifiers Type Description Overrides
CrudInterface::count public function Counts the total results for the index call. 8
CrudInterface::create public function Create operation. 8
CrudInterface::index public function List operation. 3
CrudInterface::remove public function Delete operation. 8
CrudInterface::update public function Update operation. 8
CrudInterface::view public function Read operation. 8
CrudInterface::viewMultiple public function Read operation. 8
DataProviderDbQueryInterface::getPrimary public function Gets the primary field. 1
DataProviderDbQueryInterface::getTableName public function Get the name of the table to query. 1
DataProviderDbQueryInterface::isPrimaryField public function Checks if the current field is the primary field. 1
DataProviderDbQueryInterface::setPrimary public function Sets the primary field. 1
DataProviderDbQueryInterface::setTableName public function Set the name of the table to query. 1
DataProviderInterface::addOptions public function Adds the options in the provided array to the data provider options. 3
DataProviderInterface::canonicalPath public function Generates the canonical path for a given path. 3
DataProviderInterface::discover public function Return the discovery information for the given entity. 3
DataProviderInterface::getAccount public function Gets the authenticated account. 3
DataProviderInterface::getCacheFragments public function Gets the entity context. 3
DataProviderInterface::getIndexIds public function Returns the ID to render for the current index GET request. 8
DataProviderInterface::getLangCode public function Get the language code. 3
DataProviderInterface::getMetadata public function Returns the metadata collection. 3
DataProviderInterface::getOptions public function Gets the data provider options. 3
DataProviderInterface::getRange public function Gets the range. 3
DataProviderInterface::getRequest public function Gets the request. 3
DataProviderInterface::getResourcePath public function Get the resource path. 3
DataProviderInterface::isNestedField public static function Checks if the passed in string is a dot-nested field. 3
DataProviderInterface::methodAccess public function Checks if the provided field can be used with the current method. 3
DataProviderInterface::processFilterInput public static function Processes the input for a filter and adds the appropriate defaults. 3
DataProviderInterface::setAccount public function Sets the authenticated account. 3
DataProviderInterface::setLangCode public function Sets the language code. 3
DataProviderInterface::setOptions public function Sets the options. 3
DataProviderInterface::setRange public function Sets the range. 3
DataProviderInterface::setRequest public function Sets the request. 3
DataProviderInterface::setResourcePath public function Set the resource path. 3