PHP 클래스 Sleimanx2\Plastic\Map\Blueprint

파일 보기 프로젝트 열기: sleimanx2/plastic 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$commands array The commands that should be run for the type.
$fields array The fields that should be mapped.
$type string The type the blueprint describes.

공개 메소드들

메소드 설명
__construct ( $type, Closure $callback = null, null $index = null ) Blueprint constructor.
addField ( string $type, string $name, array $attributes = [] ) : Illuminate\Support\Fluent Add a new field to the blueprint.
binary ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a binary field to the map.
boolean ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a boolean field to the map.
build ( Connection $connection, Grammar $grammar ) : array Execute the blueprint against the database.
byte ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a byte numeric field to the map.
completion ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a completion field to the map.
create ( ) : Illuminate\Support\Fluent Indicate that the table needs to be created.
date ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a date field to the map.
double ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a double field to the map.
float ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a float field to the map.
getCommands ( ) : array Get the command fields.
getFields ( ) : array Get the registered fields.
integer ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add an integer field to the map.
ip ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add an IPv4 field to the map.
long ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a long numeric field to the map.
nested ( $field, Closure $callback ) : Illuminate\Support\Fluent Add a nested map.
object ( $field, Closure $callback ) : Illuminate\Support\Fluent Add a object map.
point ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a geo point field to the map.
shape ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a geo shape field to the map.
short ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a short numeric field to the map.
string ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a string field to the map.
toDSL ( Grammar $grammar ) : array Get the raw DSL statements for the blueprint.
tokenCount ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent Add a completion field to the map.

보호된 메소드들

메소드 설명
addCommand ( string $name, array $parameters = [] ) : Illuminate\Support\Fluent Add a new command to the blueprint.
createCommand ( string $name, array $parameters = [] ) : Illuminate\Support\Fluent Create a new Fluent command.

메소드 상세

__construct() 공개 메소드

Blueprint constructor.
public __construct ( $type, Closure $callback = null, null $index = null )
$type
$callback Closure
$index null

addCommand() 보호된 메소드

Add a new command to the blueprint.
protected addCommand ( string $name, array $parameters = [] ) : Illuminate\Support\Fluent
$name string
$parameters array
리턴 Illuminate\Support\Fluent

addField() 공개 메소드

Add a new field to the blueprint.
public addField ( string $type, string $name, array $attributes = [] ) : Illuminate\Support\Fluent
$type string
$name string
$attributes array
리턴 Illuminate\Support\Fluent

binary() 공개 메소드

Add a binary field to the map.
public binary ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

boolean() 공개 메소드

Add a boolean field to the map.
public boolean ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

build() 공개 메소드

Execute the blueprint against the database.
public build ( Connection $connection, Grammar $grammar ) : array
$connection Sleimanx2\Plastic\Connection
$grammar Grammar
리턴 array

byte() 공개 메소드

Add a byte numeric field to the map.
public byte ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

completion() 공개 메소드

Add a completion field to the map.
public completion ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

create() 공개 메소드

Indicate that the table needs to be created.
public create ( ) : Illuminate\Support\Fluent
리턴 Illuminate\Support\Fluent

createCommand() 보호된 메소드

Create a new Fluent command.
protected createCommand ( string $name, array $parameters = [] ) : Illuminate\Support\Fluent
$name string
$parameters array
리턴 Illuminate\Support\Fluent

date() 공개 메소드

Add a date field to the map.
public date ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

double() 공개 메소드

Add a double field to the map.
public double ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

float() 공개 메소드

Add a float field to the map.
public float ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

getCommands() 공개 메소드

Get the command fields.
public getCommands ( ) : array
리턴 array

getFields() 공개 메소드

Get the registered fields.
public getFields ( ) : array
리턴 array

integer() 공개 메소드

Add an integer field to the map.
public integer ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

ip() 공개 메소드

Add an IPv4 field to the map.
public ip ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

long() 공개 메소드

Add a long numeric field to the map.
public long ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

nested() 공개 메소드

Add a nested map.
public nested ( $field, Closure $callback ) : Illuminate\Support\Fluent
$field
$callback Closure
리턴 Illuminate\Support\Fluent

object() 공개 메소드

Add a object map.
public object ( $field, Closure $callback ) : Illuminate\Support\Fluent
$field
$callback Closure
리턴 Illuminate\Support\Fluent

point() 공개 메소드

Add a geo point field to the map.
public point ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

shape() 공개 메소드

Add a geo shape field to the map.
public shape ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

short() 공개 메소드

Add a short numeric field to the map.
public short ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

string() 공개 메소드

Add a string field to the map.
public string ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

toDSL() 공개 메소드

Get the raw DSL statements for the blueprint.
public toDSL ( Grammar $grammar ) : array
$grammar Grammar
리턴 array

tokenCount() 공개 메소드

Add a completion field to the map.
public tokenCount ( string $field, array $attributes = [] ) : Illuminate\Support\Fluent
$field string
$attributes array
리턴 Illuminate\Support\Fluent

프로퍼티 상세

$commands 보호되어 있는 프로퍼티

The commands that should be run for the type.
protected array $commands
리턴 array

$fields 보호되어 있는 프로퍼티

The fields that should be mapped.
protected array $fields
리턴 array

$type 보호되어 있는 프로퍼티

The type the blueprint describes.
protected string $type
리턴 string