yii\mongodb\file\Collection::createDownload PHP 메소드

createDownload() 공개 메소드

Creates download command.
부터: 2.1
public createDownload ( array | MongoDB\BSON\ObjectID $document ) : Download
$document array | MongoDB\BSON\ObjectID file document ot be downloaded.
리턴 Download file download instance.
    public function createDownload($document)
    {
        $config = ['collection' => $this, 'document' => $document];
        return new Download($config);
    }