protected function RestfulDataProviderDbQuery::addDefaultValuesToPublicFields in RESTful 7
Add default values to the public fields array.
Parameters
array $public_fields: The unprocessed public fields array.
Return value
array The processed public fields array.
Overrides RestfulBase::addDefaultValuesToPublicFields
File
- plugins/
restful/ RestfulDataProviderDbQuery.php, line 261 - Contains \RestfulDataProviderDbQuery
Class
- RestfulDataProviderDbQuery
- @file Contains \RestfulDataProviderDbQuery
Code
protected function addDefaultValuesToPublicFields(array $public_fields = array()) {
// Set defaults values.
$public_fields = parent::addDefaultValuesToPublicFields($public_fields);
foreach (array_keys($public_fields) as $key) {
$info =& $public_fields[$key];
$info += array(
'column_for_query' => FALSE,
);
}
return $public_fields;
}