PHP Class Components\ReportGenerator\Controllers\Backend\ReportGeneratorController

Inheritance: extends Backend\AdminController
显示文件 Open project: doptor/doptor

Public Methods

Method Description
__construct ( )
create ( ) : Response Display a listing of the form.
destroy ( $id = null )
getGenerate ( $id )
getModules ( object $modules, array $input ) : object Get modules along with data
index ( ) Display a listing of the installed report generators.
postGenerate ( $id )
store ( ) : Response Create the report

Private Methods

Method Description
csvReport ( array $input, $generator ) : string Generate a CSV report
moduleEntries ( array $input, Collection $module ) : Collection Get the entries based on the input
pdfReport ( array $input, $generator ) : string Generate a PDF report
printHtml ( array $input, $generator ) : View Generate a HTML document for printing

Method Details

__construct() public method

public __construct ( )

create() public method

Display a listing of the form.
public create ( ) : Response
return Response

destroy() public method

public destroy ( $id = null )

getGenerate() public method

public getGenerate ( $id )

getModules() public method

Get modules along with data
public getModules ( object $modules, array $input ) : object
$modules object
$input array
return object

index() public method

Display a listing of the installed report generators.
public index ( )

postGenerate() public method

public postGenerate ( $id )

store() public method

Create the report
public store ( ) : Response
return Response