PHP Трейт Laralib\L5scaffold\Makes\MakerTrait

Показать файл Открыть проект

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

Свойство Тип Описание
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$scaffoldCommandM

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

Метод Описание
__construct ( ScaffoldMakeCommand $scaffoldCommand, Illuminate\Filesystem\Filesystem $files )

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

Метод Описание
buildStub ( array $metas, &$template ) : void Build file replacing metas in template.
existsDirectory ( $path )
getArrayRecursive ( array $array, $parent = '' )
getDestinationViews ( $model )
getFile ( $file )
getFilesRecursive ( $path )
getPath ( $file_name, string $path = 'controller' ) : string Get the path to where we should store the controller.
getStubFields ( $ui, $type ) : array Get fields stubs.
getStubPath ( ) : string Get stub path.
getStubViews ( $ui ) : array Get views stubs.
makeDirectory ( string $path ) : string Build the directory for the class if necessary.

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

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

public __construct ( ScaffoldMakeCommand $scaffoldCommand, Illuminate\Filesystem\Filesystem $files )
$scaffoldCommand Laralib\L5scaffold\Commands\ScaffoldMakeCommand
$files Illuminate\Filesystem\Filesystem

buildStub() защищенный Метод

Build file replacing metas in template.
protected buildStub ( array $metas, &$template ) : void
$metas array
Результат void

existsDirectory() защищенный Метод

protected existsDirectory ( $path )

getArrayRecursive() защищенный Метод

protected getArrayRecursive ( array $array, $parent = '' )
$array array

getDestinationViews() защищенный Метод

protected getDestinationViews ( $model )

getFile() защищенный Метод

protected getFile ( $file )

getFilesRecursive() защищенный Метод

protected getFilesRecursive ( $path )

getPath() защищенный Метод

Get the path to where we should store the controller.
protected getPath ( $file_name, string $path = 'controller' ) : string
$file_name
$path string
Результат string

getStubFields() защищенный Метод

Get fields stubs.
protected getStubFields ( $ui, $type ) : array
Результат array fields

getStubPath() защищенный Метод

Get stub path.
protected getStubPath ( ) : string
Результат string

getStubViews() защищенный Метод

Get views stubs.
protected getStubViews ( $ui ) : array
Результат array views

makeDirectory() защищенный Метод

Build the directory for the class if necessary.
protected makeDirectory ( string $path ) : string
$path string
Результат string

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

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

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
Результат Illuminate\Filesystem\Filesystem

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

protected $scaffoldCommandM