You are here

public function RestfulBase::setPublicFields in RESTful 7

Set the public fields.

Parameters

array $public_fields: The unprocessed public fields array.

1 call to RestfulBase::setPublicFields()
RestfulBase::getPublicFields in plugins/restful/RestfulBase.php
Return the properties that should be public after processing.

File

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

Class

RestfulBase
Class \RestfulBase

Code

public function setPublicFields(array $public_fields = array()) {
  $this->publicFields = $this
    ->addDefaultValuesToPublicFields($public_fields);
}