You are here

public function RestfulBase::getPublicFields in RESTful 7

Return the properties that should be public after processing.

Default values would be assigned to the properties declared in \RestfulInterface::publicFieldsInfo().

Return value

array

Overrides RestfulInterface::getPublicFields

23 calls to RestfulBase::getPublicFields()
RestfulBase::options in plugins/restful/RestfulBase.php
Call resource using the OPTIONS http method.
RestfulBase::parseRequestForListFilter in plugins/restful/RestfulBase.php
Filter the query for list.
RestfulBase::parseRequestForListSort in plugins/restful/RestfulBase.php
Parses the request to get the sorting options.
RestfulCsrfTokenResource::index in plugins/restful/csrf/RestfulCsrfTokenResource.class.php
Get a list of entities.
RestfulDataProviderCToolsPlugins::getPluginsSortedAndFiltered in plugins/restful/RestfulDataProviderCToolsPlugins.php
Gets the plugins filtered and sorted by the request.

... See full list

File

plugins/restful/RestfulBase.php, line 1105
Contains RestfulBase.

Class

RestfulBase
Class \RestfulBase

Code

public function getPublicFields() {
  if ($this->publicFields) {

    // Return early.
    return $this->publicFields;
  }
  $public_fields = $this
    ->publicFieldsInfo();

  // Cache the processed fields.
  $this
    ->setPublicFields($public_fields);
  return $this->publicFields;
}