base\ArrayableTrait resolveFields()

resolveFields() protected method

Determines which fields can be returned by toArray().

This method will check the requested fields against those declared in fields() and extraFields() to determine which fields can be returned.

protected array resolveFields ( array $fields, array $expand )
$fields array

The fields being requested for exporting

$expand array

The additional fields being requested for exporting

return array

The list of fields to be exported. The array keys are the field names, and the array values are the corresponding object property names or PHP callables returning the field values.

doc_Yii
2016-10-30 16:50:57
Comments
Leave a Comment

Please login to continue.