PHP Trait Laralib\L5scaffold\Makes\MakerTrait

Show file Open project: laralib/l5scaffold

Protected Properties

Property Type Description
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$scaffoldCommandM

Public Methods

Method Description
__construct ( ScaffoldMakeCommand $scaffoldCommand, Illuminate\Filesystem\Filesystem $files )

Protected Methods

Method Description
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.

Method Details

__construct() public method

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

buildStub() protected method

Build file replacing metas in template.
protected buildStub ( array $metas, &$template ) : void
$metas array
return void

existsDirectory() protected method

protected existsDirectory ( $path )

getArrayRecursive() protected method

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

getDestinationViews() protected method

protected getDestinationViews ( $model )

getFile() protected method

protected getFile ( $file )

getFilesRecursive() protected method

protected getFilesRecursive ( $path )

getPath() protected method

Get the path to where we should store the controller.
protected getPath ( $file_name, string $path = 'controller' ) : string
$file_name
$path string
return string

getStubFields() protected method

Get fields stubs.
protected getStubFields ( $ui, $type ) : array
return array fields

getStubPath() protected method

Get stub path.
protected getStubPath ( ) : string
return string

getStubViews() protected method

Get views stubs.
protected getStubViews ( $ui ) : array
return array views

makeDirectory() protected method

Build the directory for the class if necessary.
protected makeDirectory ( string $path ) : string
$path string
return string

Property Details

$files protected property

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
return Illuminate\Filesystem\Filesystem

$scaffoldCommandM protected property

protected $scaffoldCommandM