You are here

public function RestfulDataProviderDbQuery::getIdColumn in RESTful 7

Get ID column

Return value

array An array with the name of the column(s) in the table to be used as the unique key.

7 calls to RestfulDataProviderDbQuery::getIdColumn()
RestfulDataProviderDbQuery::create in plugins/restful/RestfulDataProviderDbQuery.php
Create an item from the request object.
RestfulDataProviderDbQuery::defaultSortInfo in plugins/restful/RestfulDataProviderDbQuery.php
Defines default sort columns if none are provided via the request URL.
RestfulDataProviderDbQuery::getQueryCount in plugins/restful/RestfulDataProviderDbQuery.php
Prepare a query for RestfulEntityBase::getTotalCount().
RestfulDataProviderDbQuery::getUniqueId in plugins/restful/RestfulDataProviderDbQuery.php
Returns a unique id for a table record.
RestfulDataProviderDbQuery::remove in plugins/restful/RestfulDataProviderDbQuery.php
Remove the item from the data source.

... See full list

File

plugins/restful/RestfulDataProviderDbQuery.php, line 44
Contains \RestfulDataProviderDbQuery

Class

RestfulDataProviderDbQuery
@file Contains \RestfulDataProviderDbQuery

Code

public function getIdColumn() {
  return is_array($this->idColumn) ? $this->idColumn : array(
    $this->idColumn,
  );
}