setDocument() public method
Sets data of the document to be downloaded.
Document can be specified by its ID, in this case its data will be fetched automatically via extra query.
public void setDocument ( $document ) | ||
---|---|---|
$document | array|\MongoDB\BSON\ObjectID |
Document raw data or document ID. |
Please login to continue.