PHP Class App\Services\Html\BlenderFormBuilder

ファイルを表示 Open project: spatie-custom/blender

Protected Properties

Property Type Description
$errors Illuminate\Support\ViewErrorBag
$model Illuminate\Database\Eloquent\Model
$module string

Public Methods

Method Description
category ( string $type ) : string
checkbox ( string $name, string $locale = '' ) : string
date ( string $name, boolean $required = false, string $locale = '' ) : string
error ( string $name ) : string
init ( string $module, Model $model, Illuminate\Support\ViewErrorBag $errors )
label ( string $name, boolean $required = false, array $options = [] ) : string
map ( string $name ) : string
media ( string $collection, string $type, array $associated = [] ) : string
redactor ( string $name, boolean $required = false, string $locale = '' ) : string
searchableMultiSelect ( string $name, $options, string $locale = '' ) : string
searchableSelect ( string $name, $options, string $locale = '' ) : string
select ( string $name, $options, string $locale = '' ) : string
seo ( ) : string
submit ( ) : string
tags ( string $type ) : string
text ( string $name, boolean $required = false, string $locale = '' ) : string
textarea ( string $name, boolean $required = false, string $locale = '' ) : string
translated ( array $fields ) : string

Protected Methods

Method Description
fieldName ( string $name, string $locale = '' ) : string
getSeoLabel ( string $attribute ) : string
group ( array $elements ) : string
languageFieldSet ( $locale, array $elements )
parts ( array $elements ) : string

Method Details

category() public method

public category ( string $type ) : string
$type string
return string

checkbox() public method

public checkbox ( string $name, string $locale = '' ) : string
$name string
$locale string
return string

date() public method

public date ( string $name, boolean $required = false, string $locale = '' ) : string
$name string
$required boolean
$locale string
return string

error() public method

public error ( string $name ) : string
$name string
return string

fieldName() protected method

protected fieldName ( string $name, string $locale = '' ) : string
$name string
$locale string
return string

getSeoLabel() protected method

protected getSeoLabel ( string $attribute ) : string
$attribute string
return string

group() protected method

protected group ( array $elements ) : string
$elements array
return string

init() public method

public init ( string $module, Model $model, Illuminate\Support\ViewErrorBag $errors )
$module string
$model Illuminate\Database\Eloquent\Model
$errors Illuminate\Support\ViewErrorBag

label() public method

public label ( string $name, boolean $required = false, array $options = [] ) : string
$name string
$required boolean
$options array
return string

languageFieldSet() protected method

protected languageFieldSet ( $locale, array $elements )
$elements array

map() public method

public map ( string $name ) : string
$name string
return string

media() public method

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

parts() protected method

protected parts ( array $elements ) : string
$elements array
return string

redactor() public method

public redactor ( string $name, boolean $required = false, string $locale = '' ) : string
$name string
$required boolean
$locale string
return string

searchableMultiSelect() public method

public searchableMultiSelect ( string $name, $options, string $locale = '' ) : string
$name string
$locale string
return string

searchableSelect() public method

public searchableSelect ( string $name, $options, string $locale = '' ) : string
$name string
$locale string
return string

select() public method

public select ( string $name, $options, string $locale = '' ) : string
$name string
$locale string
return string

seo() public method

public seo ( ) : string
return string

submit() public method

public submit ( ) : string
return string

tags() public method

public tags ( string $type ) : string
$type string
return string

text() public method

public text ( string $name, boolean $required = false, string $locale = '' ) : string
$name string
$required boolean
$locale string
return string

textarea() public method

public textarea ( string $name, boolean $required = false, string $locale = '' ) : string
$name string
$required boolean
$locale string
return string

translated() public method

public translated ( array $fields ) : string
$fields array
return string

Property Details

$errors protected_oe property

protected ViewErrorBag,Illuminate\Support $errors
return Illuminate\Support\ViewErrorBag

$model protected_oe property

protected Model,Illuminate\Database\Eloquent $model
return Illuminate\Database\Eloquent\Model

$module protected_oe property

protected string $module
return string