\rex_sql_foreign_key

Class to represent sql foreign keys.

Summary

Methods
Properties
Constants
__construct()
setModified()
isModified()
setName()
getName()
setTable()
getTable()
setColumns()
getColumns()
setOnUpdate()
getOnUpdate()
setOnDelete()
getOnDelete()
equals()
No public properties found
RESTRICT
CASCADE
SET_NULL
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

RESTRICT

RESTRICT = 'RESTRICT'

CASCADE

CASCADE = 'CASCADE'

SET_NULL

SET_NULL = 'SET NULL'

Methods

__construct()

__construct(string  $name, string  $table, array<string,string>  $columns, mixed  $onUpdate = self::RESTRICT, mixed  $onDelete = self::RESTRICT) : mixed

Parameters

string $name
string $table
array $columns

Mapping of locale column to column in foreign table

mixed $onUpdate
mixed $onDelete

Returns

mixed —

setModified()

setModified(bool  $modified) : $this

Parameters

bool $modified

Returns

$this —

isModified()

isModified() : bool

Returns

bool —

setName()

setName(string  $name) : $this

Parameters

string $name

Returns

$this —

getName()

getName() : string

Returns

string —

setTable()

setTable(string  $table) : $this

Parameters

string $table

Returns

$this —

getTable()

getTable() : string

Returns

string —

setColumns()

setColumns(array<string,string>  $columns) : $this

Parameters

array $columns

Mapping of locale column to column in foreign table

Returns

$this —

getColumns()

getColumns() : array<string,string>

Returns

array

setOnUpdate()

setOnUpdate(mixed  $onUpdate) : $this

Parameters

mixed $onUpdate

Returns

$this —

getOnUpdate()

getOnUpdate() : mixed

Returns

mixed —

setOnDelete()

setOnDelete(mixed  $onDelete) : $this

Parameters

mixed $onDelete

Returns

$this —

getOnDelete()

getOnDelete() : mixed

Returns

mixed —

equals()

equals(self  $index) : bool

Parameters

self $index

Returns

bool —