Arikaim CMS

TableBlueprint extends Blueprint
in package

Extended Blueprint with column prototypes

Table of Contents

Methods

__call()  : void
Call prototype method
addCommand()  : Fluent
Add a new command to the blueprint.
addForeign()  : Fluent
Add a new foregn command to the blueprint.
getColumns()  : array<string|int, mixed>
Get columns
getCommands()  : array<string|int, mixed>
Get commands
indexCommand()  : Fluent
Add a new index command to the blueprint.
prototype()  : void
Build column blueprint prototype
tablePrototype()  : void
Build table blueprint prototype
buildPrototype()  : void
Build blueprint prototype
resolveColumnPrototypeClass()  : string
Resolve column prototype class name

Methods

__call()

Call prototype method

public __call(string $name, array<string|int, mixed> $arguments) : void
Parameters
$name : string
$arguments : array<string|int, mixed>

addCommand()

Add a new command to the blueprint.

public addCommand(string $name[, array<string|int, mixed> $parameters = [] ]) : Fluent
Parameters
$name : string
$parameters : array<string|int, mixed> = []
Return values
Fluent

addForeign()

Add a new foregn command to the blueprint.

public addForeign(Fluent $foreign) : Fluent
Parameters
$foreign : Fluent
Return values
Fluent

getColumns()

Get columns

public getColumns() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCommands()

Get commands

public getCommands() : array<string|int, mixed>
Return values
array<string|int, mixed>

indexCommand()

Add a new index command to the blueprint.

public indexCommand(string $type, string|array<string|int, mixed> $columns, string $index[, string|null $algorithm = null ]) : Fluent
Parameters
$type : string
$columns : string|array<string|int, mixed>
$index : string
$algorithm : string|null = null
Return values
Fluent

prototype()

Build column blueprint prototype

public prototype(string $name[, mixed|null $options = null ]) : void
Parameters
$name : string
$options : mixed|null = null

tablePrototype()

Build table blueprint prototype

public tablePrototype(string $name[, mixed|null $options = null ]) : void
Parameters
$name : string
$options : mixed|null = null

buildPrototype()

Build blueprint prototype

protected buildPrototype(string $class, mixed $options) : void
Parameters
$class : string
$options : mixed

resolveColumnPrototypeClass()

Resolve column prototype class name

protected resolveColumnPrototypeClass(string $name) : string
Parameters
$name : string
Return values
string

        
On this page

Search results