You are here

public function RestfulDbQueryTestTable::publicFieldsInfo in RESTful 7

Return the properties that should be public.

Return value

array

Throws

\RestfulEntityViewMode

Overrides RestfulInterface::publicFieldsInfo

File

tests/modules/restful_test/plugins/restful/db_query_test/1.0/RestfulDbQueryTestTable.class.php, line 13
Contains RestfulDbQueryTestTable.

Class

RestfulDbQueryTestTable
@file Contains RestfulDbQueryTestTable.

Code

public function publicFieldsInfo() {
  return array(
    'id' => array(
      'property' => 'id',
    ),
    'string' => array(
      'property' => 'str_field',
    ),
    'integer' => array(
      'property' => 'int_field',
    ),
    'serialized' => array(
      'property' => 'serialized_field',
    ),
  );
}