PHP Class App\Http\Controllers\DocumentController

Inheritance: extends Controller
Show file Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$documentRepo
$entityType

Public Methods

Method Description
__construct ( DocumentRepository $documentRepo )
delete ( App\Http\Requests\UpdateDocumentRequest $request )
get ( App\Http\Requests\DocumentRequest $request )
getDownloadResponse ( $document )
getPreview ( App\Http\Requests\DocumentRequest $request )
getVFSJS ( App\Http\Requests\DocumentRequest $request, $publicId, $name )
postUpload ( CreateDocumentRequest $request )

Method Details

__construct() public method

public __construct ( DocumentRepository $documentRepo )
$documentRepo App\Ninja\Repositories\DocumentRepository

delete() public method

public delete ( App\Http\Requests\UpdateDocumentRequest $request )
$request App\Http\Requests\UpdateDocumentRequest

get() public method

public get ( App\Http\Requests\DocumentRequest $request )
$request App\Http\Requests\DocumentRequest

getDownloadResponse() public static method

public static getDownloadResponse ( $document )

getPreview() public method

public getPreview ( App\Http\Requests\DocumentRequest $request )
$request App\Http\Requests\DocumentRequest

getVFSJS() public method

public getVFSJS ( App\Http\Requests\DocumentRequest $request, $publicId, $name )
$request App\Http\Requests\DocumentRequest

postUpload() public method

public postUpload ( CreateDocumentRequest $request )
$request App\Http\Requests\CreateDocumentRequest

Property Details

$documentRepo protected property

protected $documentRepo

$entityType protected property

protected $entityType