PHP Class Devise\Models\Scaffolding\TemplateScaffolding

Show file Open project: devisephp/cms

Public Methods

Method Description
__construct ( TemplatesManager $TemplatesManager, Framework $Framework )
convertTemplatesAndSave ( $files, $constants, $fields ) : boolean
insertTemplateConfiguration ( $templates ) : boolean

Protected Methods

Method Description
convertCreateAndUpdateFields ( $type, $template, $fields ) : mixed
convertFields ( $template, $fields ) : mixed
convertIndexes ( $template, $fields ) : mixed

Private Methods

Method Description
buildCheckboxField ( $field, $options, $type ) : string
buildFileField ( $field, $options ) : string
buildGenericField ( $field, $default, $options, $type ) : string
buildImageField ( $field, $default, $options, $type )
buildPasswordField ( $field, $options ) : string
buildRadioField ( $field, $options, $type ) : string
buildSelectField ( $field, $default, $options, $choices ) : string
buildSelectRangeField ( $field, $default, $options ) : string
getField ( $field ) : string
getFormTypeFromDataType ( $datatype ) : string
getLabel ( $field ) : string
getLabelText ( $field ) : string

Method Details

__construct() public method

public __construct ( TemplatesManager $TemplatesManager, Framework $Framework )
$TemplatesManager Devise\Templates\TemplatesManager
$Framework Devise\Support\Framework

convertCreateAndUpdateFields() protected method

protected convertCreateAndUpdateFields ( $type, $template, $fields ) : mixed
$type
$template
$fields
return mixed

convertFields() protected method

protected convertFields ( $template, $fields ) : mixed
$template
$fields
return mixed

convertIndexes() protected method

protected convertIndexes ( $template, $fields ) : mixed
$template
$fields
return mixed

convertTemplatesAndSave() public method

public convertTemplatesAndSave ( $files, $constants, $fields ) : boolean
$files
$constants
$fields
return boolean

insertTemplateConfiguration() public method

public insertTemplateConfiguration ( $templates ) : boolean
$templates
return boolean