function RestfulDataProviderDbQuery::isPrimaryField in RESTful 7
Checks if the current field is the primary field.
Parameters
string $field: The column name to check.
Return value
boolean TRUE if it is the primary field, FALSE otherwise.
2 calls to RestfulDataProviderDbQuery::isPrimaryField()
- RestfulDataProviderDbQuery::create in plugins/
restful/ RestfulDataProviderDbQuery.php - Create an item from the request object.
- RestfulDataProviderDbQuery::update in plugins/
restful/ RestfulDataProviderDbQuery.php - Update an item based on the request object.
File
- plugins/
restful/ RestfulDataProviderDbQuery.php, line 607 - Contains \RestfulDataProviderDbQuery
Class
- RestfulDataProviderDbQuery
- @file Contains \RestfulDataProviderDbQuery
Code
function isPrimaryField($field) {
return $this->primary == $field;
}