You are here

public function EntityAPIControllerInterface::export in Entity API 7

Exports an entity as serialized string.

Parameters

$entity: The entity to export.

$prefix: An optional prefix for each line.

Return value

string The exported entity as serialized string. The format is determined by the controller and has to be compatible with the format that is accepted by the import() method.

1 method overrides EntityAPIControllerInterface::export()
EntityAPIController::export in includes/entity.controller.inc
Implements EntityAPIControllerInterface.

File

includes/entity.controller.inc, line 68
Provides a controller building upon the core controller but providing more features like full CRUD functionality.

Class

EntityAPIControllerInterface
Interface for EntityControllers compatible with the entity API.

Code

public function export($entity, $prefix = '');