rex_sql_index
in package
Class to represent sql indexes.
Tags
Table of Contents
Constants
Methods
- __construct() : mixed
- equals() : bool
- getColumns() : array<int, string>
- getName() : string
- getType() : self::INDEX|self::UNIQUE|self::FULLTEXT
- isModified() : bool
- setColumns() : $this
- setModified() : $this
- setName() : $this
- setType() : $this
Constants
FULLTEXT
public
mixed
FULLTEXT
= 'FULLTEXT'
INDEX
public
mixed
INDEX
= 'INDEX'
UNIQUE
public
mixed
UNIQUE
= 'UNIQUE'
Methods
__construct()
public
__construct(string $name, array<int, string> $columns[, self::INDEX|self::UNIQUE|self::FULLTEXT $type = self::INDEX ]) : mixed
Parameters
- $name : string
- $columns : array<int, string>
- $type : self::INDEX|self::UNIQUE|self::FULLTEXT = self::INDEX
equals()
public
equals(self $index) : bool
Parameters
- $index : self
Return values
boolgetColumns()
public
getColumns() : array<int, string>
Return values
array<int, string>getName()
public
getName() : string
Return values
stringgetType()
public
getType() : self::INDEX|self::UNIQUE|self::FULLTEXT
Return values
self::INDEX|self::UNIQUE|self::FULLTEXTisModified()
public
isModified() : bool
Return values
boolsetColumns()
public
setColumns(array<int, string> $columns) : $this
Parameters
- $columns : array<int, string>
Return values
$thissetModified()
public
setModified(bool $modified) : $this
Parameters
- $modified : bool
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetType()
public
setType(self::INDEX|self::UNIQUE|self::FULLTEXT $type) : $this
Parameters
- $type : self::INDEX|self::UNIQUE|self::FULLTEXT