PHP 클래스 Appzcoder\CrudGenerator\Commands\CrudControllerCommand

상속: extends Illuminate\Console\GeneratorCommand
파일 보기 프로젝트 열기: appzcoder/crud-generator

보호된 프로퍼티들

프로퍼티 타입 설명
$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