/** * Called to download this content item and stream it directly to the browser * * @param HTTP_Request $request */ public function download($request) { if ($request->param('ID')) { $object = ExternalContent::getDataObjectFor($request->param('ID')); if ($object && $object instanceof ExternalContentItem) { $object->streamContent(); } } }