PHP Класс Appzcoder\CrudGenerator\Commands\CrudViewCommand

Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$crudName string Name of the Crud.
$crudNameCap string Crud Name in capital form.
$crudNameSingular string Crud Name in singular form.
$defaultColumnsToShow integer Number of columns to show from the table. Others are hidden.
$description string The console command description.
$formBodyHtml string Html of the form body.
$formBodyHtmlForShowView string Html of view to show.
$formFields array Form's fields.
$formFieldsHtml string Html of Form's fields.
$formHeadingHtml string Html of the form heading.
$modelName string Name of the Model.
$primaryKey string Primary key of the model.
$routeGroup string Name or prefix of the Route Group.
$signature string The name and signature of the console command.
$typeLookup array Form field types collection.
$viewDirectoryPath string View Directory Path.
$viewName string Name of the View Dir.

Открытые методы

Метод Описание
__construct ( ) : void Create a new command instance.
handle ( ) : void Execute the console command.
templateCreateVars ( string $newCreateFile ) : void Update values between %% with real values in create view.
templateEditVars ( string $newEditFile ) : void Update values between %% with real values in edit view.
templateFormVars ( string $newFormFile ) : void Update values between %% with real values in form view.
templateIndexVars ( string $newIndexFile ) : void Update values between %% with real values in index view.
templateShowVars ( string $newShowFile ) : void Update values between %% with real values in show view.

Защищенные методы

Метод Описание
createField ( array $item ) : string Form field generator.
createFormField ( array $item ) : string Create a specific field using the form helper.
createInputField ( array $item ) : string Create a generic input field using the form helper.
createPasswordField ( array $item ) : string Create a password field using the form helper.
createRadioField ( array $item ) : string Create a yes/no radio button group using the form helper.
createSelectField ( array $item ) : string Create a select field using the form helper.
wrapField ( string $item, string $field ) : void Form field wrapper.

Описание методов

__construct() публичный метод

Create a new command instance.
public __construct ( ) : void
Результат void

createField() защищенный метод

Form field generator.
protected createField ( array $item ) : string
$item array
Результат string

createFormField() защищенный метод

Create a specific field using the form helper.
protected createFormField ( array $item ) : string
$item array
Результат string

createInputField() защищенный метод

Create a generic input field using the form helper.
protected createInputField ( array $item ) : string
$item array
Результат string

createPasswordField() защищенный метод

Create a password field using the form helper.
protected createPasswordField ( array $item ) : string
$item array
Результат string

createRadioField() защищенный метод

Create a yes/no radio button group using the form helper.
protected createRadioField ( array $item ) : string
$item array
Результат string

createSelectField() защищенный метод

Create a select field using the form helper.
protected createSelectField ( array $item ) : string
$item array
Результат string

handle() публичный метод

Execute the console command.
public handle ( ) : void
Результат void

templateCreateVars() публичный метод

Update values between %% with real values in create view.
public templateCreateVars ( string $newCreateFile ) : void
$newCreateFile string
Результат void

templateEditVars() публичный метод

Update values between %% with real values in edit view.
public templateEditVars ( string $newEditFile ) : void
$newEditFile string
Результат void

templateFormVars() публичный метод

Update values between %% with real values in form view.
public templateFormVars ( string $newFormFile ) : void
$newFormFile string
Результат void

templateIndexVars() публичный метод

Update values between %% with real values in index view.
public templateIndexVars ( string $newIndexFile ) : void
$newIndexFile string
Результат void

templateShowVars() публичный метод

Update values between %% with real values in show view.
public templateShowVars ( string $newShowFile ) : void
$newShowFile string
Результат void

wrapField() защищенный метод

Form field wrapper.
protected wrapField ( string $item, string $field ) : void
$item string
$field string
Результат void

Описание свойств

$crudName защищенное свойство

Name of the Crud.
protected string $crudName
Результат string

$crudNameCap защищенное свойство

Crud Name in capital form.
protected string $crudNameCap
Результат string

$crudNameSingular защищенное свойство

Crud Name in singular form.
protected string $crudNameSingular
Результат string

$defaultColumnsToShow защищенное свойство

Number of columns to show from the table. Others are hidden.
protected int $defaultColumnsToShow
Результат integer

$description защищенное свойство

The console command description.
protected string $description
Результат string

$formBodyHtml защищенное свойство

Html of the form body.
protected string $formBodyHtml
Результат string

$formBodyHtmlForShowView защищенное свойство

Html of view to show.
protected string $formBodyHtmlForShowView
Результат string

$formFields защищенное свойство

Form's fields.
protected array $formFields
Результат array

$formFieldsHtml защищенное свойство

Html of Form's fields.
protected string $formFieldsHtml
Результат string

$formHeadingHtml защищенное свойство

Html of the form heading.
protected string $formHeadingHtml
Результат string

$modelName защищенное свойство

Name of the Model.
protected string $modelName
Результат string

$primaryKey защищенное свойство

Primary key of the model.
protected string $primaryKey
Результат string

$routeGroup защищенное свойство

Name or prefix of the Route Group.
protected string $routeGroup
Результат string

$signature защищенное свойство

The name and signature of the console command.
protected string $signature
Результат string

$typeLookup защищенное свойство

Form field types collection.
protected array $typeLookup
Результат array

$viewDirectoryPath защищенное свойство

View Directory Path.
protected string $viewDirectoryPath
Результат string

$viewName защищенное свойство

Name of the View Dir.
protected string $viewName
Результат string