PHP Class Mgallegos\LaravelJqgrid\Encoders\JqGridJsonEncoder

Inheritance: implements Mgallegos\LaravelJqgrid\Encoders\RequestedDataInterface
Mostra file Open project: mgallegos/laravel-jqgrid

Protected Properties

Property Type Description
$Excel Maatwebsite\Excel\Excel Maatwebsite\Excel\Excel

Public Methods

Method Description
__construct ( Maatwebsite\Excel\Excel $Excel ) Construct Excel
encodeRequestedData ( Mgallegos\LaravelJqgrid\Repositories\RepositoryInterface $Repository, array $postedData ) : string Echo in a jqGrid compatible format the data requested by a grid.

Protected Methods

Method Description
numToLetter ( $num, $uppercase = FALSE ) : string Takes a number and converts it to a-z,aa-zz,aaa-zzz, etc with uppercase option

Method Details

__construct() public method

Construct Excel
public __construct ( Maatwebsite\Excel\Excel $Excel )
$Excel Maatwebsite\Excel\Excel

encodeRequestedData() public method

Echo in a jqGrid compatible format the data requested by a grid.
public encodeRequestedData ( Mgallegos\LaravelJqgrid\Repositories\RepositoryInterface $Repository, array $postedData ) : string
$Repository Mgallegos\LaravelJqgrid\Repositories\RepositoryInterface
$postedData array All jqGrid posted data
return string String of a jqGrid compatible data format: xml, json, jsonp, array, xmlstring, jsonstring.

numToLetter() protected method

Takes a number and converts it to a-z,aa-zz,aaa-zzz, etc with uppercase option
protected numToLetter ( $num, $uppercase = FALSE ) : string
return string letters from number input

Property Details

$Excel protected_oe property

Maatwebsite\Excel\Excel
protected Excel,Maatwebsite\Excel $Excel
return Maatwebsite\Excel\Excel