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

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

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

Свойство Тип Описание
$description string The console command description.
$signature string The name and signature of the console command.
$type string The type of class being generated.

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

Метод Описание
buildClass ( string $name ) : string Build the model class with the given name.
getDefaultNamespace ( string $rootNamespace ) : string Get the default namespace for the class.
getStub ( ) : string Get the stub file for the generator.
replaceCrudName ( string &$stub, string $crudName ) Replace the crudName for the given stub.
replaceCrudNameSingular ( string &$stub, string $crudNameSingular ) Replace the crudNameSingular for the given stub.
replaceFileSnippet ( &$stub, $fileSnippet ) Replace the file snippet for the given stub
replaceModelName ( string &$stub, string $modelName ) Replace the modelName for the given stub.
replaceModelNamespace ( string &$stub, $modelNamespace ) Replace the modelName for the given stub.
replacePaginationNumber ( &$stub, $perPage ) Replace the pagination placeholder for the given stub
replaceRouteGroup ( string &$stub, string $routeGroup ) Replace the routeGroup for the given stub.
replaceValidationRules ( string &$stub, string $validationRules ) Replace the validationRules for the given stub.
replaceViewName ( string &$stub, string $viewName ) Replace the viewName fo the given stub.
replaceViewPath ( string &$stub, string $viewPath ) Replace the viewPath for the given stub.

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

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

Build the model class with the given name.
protected buildClass ( string $name ) : string
$name string
Результат string

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

Get the default namespace for the class.
protected getDefaultNamespace ( string $rootNamespace ) : string
$rootNamespace string
Результат string

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

Get the stub file for the generator.
protected getStub ( ) : string
Результат string

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

Replace the crudName for the given stub.
protected replaceCrudName ( string &$stub, string $crudName )
$stub string
$crudName string

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

Replace the crudNameSingular for the given stub.
protected replaceCrudNameSingular ( string &$stub, string $crudNameSingular )
$stub string
$crudNameSingular string

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

Replace the file snippet for the given stub
protected replaceFileSnippet ( &$stub, $fileSnippet )
$stub
$fileSnippet

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

Replace the modelName for the given stub.
protected replaceModelName ( string &$stub, string $modelName )
$stub string
$modelName string

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

Replace the modelName for the given stub.
protected replaceModelNamespace ( string &$stub, $modelNamespace )
$stub string

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

Replace the pagination placeholder for the given stub
protected replacePaginationNumber ( &$stub, $perPage )
$stub
$perPage

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

Replace the routeGroup for the given stub.
protected replaceRouteGroup ( string &$stub, string $routeGroup )
$stub string
$routeGroup string

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

Replace the validationRules for the given stub.
protected replaceValidationRules ( string &$stub, string $validationRules )
$stub string
$validationRules string

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

Replace the viewName fo the given stub.
protected replaceViewName ( string &$stub, string $viewName )
$stub string
$viewName string

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

Replace the viewPath for the given stub.
protected replaceViewPath ( string &$stub, string $viewPath )
$stub string
$viewPath string

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

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

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

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

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

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

The type of class being generated.
protected string $type
Результат string