You are here

public function RestfulWatchdogResource::publicFieldsInfo in RESTful 7

Return the properties that should be public.

Return value

array

Throws

\RestfulEntityViewMode

Overrides RestfulInterface::publicFieldsInfo

File

modules/restful_example/plugins/restful/db_query/watchdog/1.0/RestfulWatchdogResource.class.php, line 9
Contains RestfulEntityBase.

Class

RestfulWatchdogResource
@file Contains RestfulEntityBase.

Code

public function publicFieldsInfo() {
  $public_fields['log_id'] = array(
    'property' => 'wid',
  );
  $public_fields['log_type'] = array(
    'property' => 'type',
  );
  $public_fields['log_text'] = array(
    'property' => 'message',
  );
  $public_fields['log_variables'] = array(
    'property' => 'variables',
  );
  $public_fields['log_level'] = array(
    'property' => 'severity',
  );
  $public_fields['log_path'] = array(
    'property' => 'location',
  );
  return $public_fields;
}