Overview

Namespaces

  • None
  • Yajra
    • Datatables
      • Contracts
      • Engines
      • Facades
      • Generators
      • Html
      • Processors
      • Services
      • Transformers

Classes

  • DataTablesMakeCommand
  • DataTablesScopeCommand
  • Overview
  • Namespace
  • Class

Class DataTablesMakeCommand

Class DataTablesMakeCommand.

Illuminate\Console\GeneratorCommand
Extended by Yajra\Datatables\Generators\DataTablesMakeCommand
Namespace: Yajra\Datatables\Generators
Package: Yajra\Datatables\Generators
Author: Arjay Angeles aqangeles@gmail.com
Located at Generators/DataTablesMakeCommand.php
Methods summary
protected string
# buildClass( string $name )

Build the class with the given name.

Build the class with the given name.

Parameters

$name

Returns

string
protected string
# getStub( )

Get the stub file for the generator.

Get the stub file for the generator.

Returns

string
protected mixed
# replaceModel( string & $stub )

Replace model name.

Replace model name.

Parameters

$stub

Returns

mixed
protected
# replaceModelImport( string & $stub )

Replace model import.

Replace model import.

Parameters

$stub

Returns


$this
protected string
# replaceFilename( string & $stub )

Replace the filename.

Replace the filename.

Parameters

$stub

Returns

string
protected array
# getOptions( )

Get the console command options.

Get the console command options.

Returns

array
protected boolean
# alreadyExists( string $rawName )

Determine if the class already exists.

Determine if the class already exists.

Parameters

$rawName

Returns

boolean
protected string
# parseName( string $name )

Parse the name and format according to the root namespace.

Parse the name and format according to the root namespace.

Parameters

$name

Returns

string
protected string
# getDefaultNamespace( string $rootNamespace )

Get the default namespace for the class.

Get the default namespace for the class.

Parameters

$rootNamespace

Returns

string
protected
# setModel( string $name )

Set the model to be used.

Set the model to be used.

Parameters

$name
protected
# setFilename( string $name )

Set the filename for export.

Set the filename for export.

Parameters

$name
Properties summary
protected string $name

The console command name.

The console command name.

# 'datatables:make'
protected string $description

The console command description.

The console command description.

# 'Create a new DataTable service class.'
protected string $type

The type of class being generated.

The type of class being generated.

# 'DataTable'
protected string $model

The model class to be used by dataTable.

The model class to be used by dataTable.

#
protected string $filename

DataTable export filename.

DataTable export filename.

#
API documentation generated by ApiGen