Prefix
Contain all function to manage prefix of tables.
Table of Contents
- $prefix : string
- Prefix used foPrefix used by tables.
- getPrefix() : string
- Get the value of prefix.
- prefix() : string|array<string|int, mixed>
- Prefix for tables.
- setPrefix() : self
- Set the value of prefix.
Properties
$prefix
Prefix used foPrefix used by tables.
protected
string
$prefix
= ''
Methods
getPrefix()
Get the value of prefix.
public
getPrefix() : string
Return values
string —prefix()
Prefix for tables.
public
prefix(string|array<string|int, mixed> $tablename[, false|string $force = false ]) : string|array<string|int, mixed>
Parameters
- $tablename : string|array<string|int, mixed>
-
Name of table
- $force : false|string = false
-
If you want to force a prefix
Return values
string|array<string|int, mixed> —setPrefix()
Set the value of prefix.
public
setPrefix(string $prefix) : self
Parameters
- $prefix : string