PHP Class App\Services\Html\FormBuilder

Inheritance: extends Collective\Html\FormBuilder
Mostrar archivo Open project: spatie-custom/blender Class Usage Examples

Public Methods

Method Description
category ( $subject, $type, array $options = [] ) : string
checkboxWithLabel ( $subject, string $fieldName, string $label, array $options = [] ) : string
closeButton ( ) : string
datePicker ( string $name, string $value ) : string
getLabelForTranslatedField ( string $fieldName, string $label, string $locale ) : string
locales ( array $locales, string $current ) : string
media ( $subject, string $collection, string $type, $associated = [] ) : string
openButton ( array $formOptions = [], array $buttonOptions = [] ) : string
openDraftable ( array $options, Model $subject ) : string
redactor ( $subject, string $fieldName, string $locale = '', array $options = [] ) : string
tags ( $subject, string $type, array $options = [] ) : string
useInitialValue ( $subject, string $propertyName, string $locale = '' ) : string

Protected Methods

Method Description
getAssociatedMediaData ( $associated = [] ) : string

Method Details

category() public method

public category ( $subject, $type, array $options = [] ) : string
$options array
return string

checkboxWithLabel() public method

public checkboxWithLabel ( $subject, string $fieldName, string $label, array $options = [] ) : string
$fieldName string
$label string
$options array
return string

closeButton() public method

public closeButton ( ) : string
return string

datePicker() public method

public datePicker ( string $name, string $value ) : string
$name string
$value string
return string

getAssociatedMediaData() protected method

protected getAssociatedMediaData ( $associated = [] ) : string
return string

getLabelForTranslatedField() public method

public getLabelForTranslatedField ( string $fieldName, string $label, string $locale ) : string
$fieldName string
$label string
$locale string
return string

locales() public method

public locales ( array $locales, string $current ) : string
$locales array
$current string
return string

media() public method

public media ( $subject, string $collection, string $type, $associated = [] ) : string
$collection string
$type string
return string

openButton() public method

public openButton ( array $formOptions = [], array $buttonOptions = [] ) : string
$formOptions array
$buttonOptions array
return string

openDraftable() public method

public openDraftable ( array $options, Model $subject ) : string
$options array
$subject Illuminate\Database\Eloquent\Model
return string

redactor() public method

public redactor ( $subject, string $fieldName, string $locale = '', array $options = [] ) : string
$fieldName string
$locale string
$options array
return string

tags() public method

public tags ( $subject, string $type, array $options = [] ) : string
$type string
$options array
return string

useInitialValue() public method

public useInitialValue ( $subject, string $propertyName, string $locale = '' ) : string
$propertyName string
$locale string
return string