base\Arrayable toArray()

toArray() public abstract method

Converts the object into an array.

public abstract array toArray ( array $fields = [], array $expand = [], $recursive = true )
$fields array

The fields that the output array should contain. Fields not specified in fields() will be ignored. If this parameter is empty, all fields as specified in fields() will be returned.

$expand array

The additional fields that the output array should contain. Fields not specified in extraFields() will be ignored. If this parameter is empty, no extra fields will be returned.

$recursive boolean

Whether to recursively return array representation of embedded objects.

return array

The array representation of the object

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

Please login to continue.