Documentation

Table
in package

Table of Contents

Properties

$db  : mixed
$name  : mixed

Methods

__construct()  : mixed
addIndex()  : mixed
createTable()  : mixed
delete()  : mixed
escape()  : mixed
getColumns()  : mixed
getName()  : mixed
insert()  : mixed
optimize()  : mixed
select()  : mixed
tableExists()  : mixed
tableMove()  : mixed
update()  : mixed

Properties

Methods

__construct()

public __construct(Database $db, mixed $tableName) : mixed
Parameters
$db : Database
$tableName : mixed

addIndex()

public addIndex(mixed $index) : mixed
Parameters
$index : mixed

createTable()

public createTable(array<string|int, mixed> $cols, array<string|int, mixed> $keys[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$cols : array<string|int, mixed>
$keys : array<string|int, mixed>
$options : array<string|int, mixed> = []

delete()

public delete([mixed $id = false ]) : mixed
Parameters
$id : mixed = false

escape()

public escape(mixed $string) : mixed
Parameters
$string : mixed

getColumns()

public getColumns() : mixed

getName()

public getName() : mixed

insert()

public insert([mixed $insertData = [] ][, mixed $onDuplicateData = [] ]) : mixed
Parameters
$insertData : mixed = []
$onDuplicateData : mixed = []

optimize()

public optimize() : mixed

select()

public select([mixed $cols = true ][, mixed $sqlString = '' ][, mixed $sqlSuffix = '' ]) : mixed
Parameters
$cols : mixed = true
$sqlString : mixed = ''
$sqlSuffix : mixed = ''

tableExists()

public tableExists() : mixed

tableMove()

public tableMove(mixed $newTableName[, mixed $newDbName = null ]) : mixed
Parameters
$newTableName : mixed
$newDbName : mixed = null

update()

public update([mixed $arr = [] ][, mixed $id = false ]) : mixed
Parameters
$arr : mixed = []
$id : mixed = false

        
On this page

Search results