PHP Class Devise\Models\Scaffolding\TemplateScaffolding

Afficher le fichier Open project: devisephp/cms

Méthodes publiques

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

Méthodes protégées

Méthode Description
convertCreateAndUpdateFields ( $type, $template, $fields ) : mixed
convertFields ( $template, $fields ) : mixed
convertIndexes ( $template, $fields ) : mixed

Private Methods

Méthode 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 méthode

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

convertCreateAndUpdateFields() protected méthode

protected convertCreateAndUpdateFields ( $type, $template, $fields ) : mixed
$type
$template
$fields
Résultat mixed

convertFields() protected méthode

protected convertFields ( $template, $fields ) : mixed
$template
$fields
Résultat mixed

convertIndexes() protected méthode

protected convertIndexes ( $template, $fields ) : mixed
$template
$fields
Résultat mixed

convertTemplatesAndSave() public méthode

public convertTemplatesAndSave ( $files, $constants, $fields ) : boolean
$files
$constants
$fields
Résultat boolean

insertTemplateConfiguration() public méthode

public insertTemplateConfiguration ( $templates ) : boolean
$templates
Résultat boolean