rest\Serializer serialize()

serialize() public method

Serializes the given data into a format that can be easily turned into other formats.

This method mainly converts the objects of recognized types into array representation. It will not do conversion for unknown object types or non-object data. The default implementation will handle yii\base\Model and yii\data\DataProviderInterface. You may override this method to support more object types.

public mixed serialize ( $data )
$data mixed

The data to be serialized.

return mixed

The converted data.

doc_Yii
2016-10-30 17:11:10
Comments
Leave a Comment

Please login to continue.