PHP Class JSON, generatedata

Show file Open project: benkeen/generatedata Class Usage Examples

Public Properties

Property Type Description
$L

Protected Properties

Property Type Description
$codeMirrorModes
$contentTypeHeader
$exportTypeName
$isEnabled
$jsModules

Public Methods

Method Description
generate ( $generator )
getAdditionalSettingsHTML ( )
getDownloadFilename ( Generator $generator ) : string Used for constructing the filename of the filename when downloading.

Private Methods

Method Description
determineNumericFields ( $template )
generateComplex ( $generator, $data, $stripWhitespace )
generateSimple ( $generator, $data, $stripWhitespace )
getDataStructureFormat ( ) : string Returns the desired JSON data structure format - simple or complex.
shouldStripWhitespace ( ) Wrapper function to find out whether the user wants whitespace to be enabled or not. The settings content is either JSON or a POST array, depending on where the generation is taking place.

Method Details

generate() public method

public generate ( $generator )

getAdditionalSettingsHTML() public method

getDownloadFilename() public method

Used for constructing the filename of the filename when downloading.
See also: ExportTypePlugin::getDownloadFilename()
public getDownloadFilename ( Generator $generator ) : string
$generator Generator
return string

Property Details

$L public property

public $L

$codeMirrorModes protected property

protected $codeMirrorModes

$contentTypeHeader protected property

protected $contentTypeHeader

$exportTypeName protected property

protected $exportTypeName

$isEnabled protected property

protected $isEnabled

$jsModules protected property

protected $jsModules