Documentation

Row extends Base
in package

Tags
extends

Base<string, Column, string>

Table of Contents

Properties

$columns  : array<string, Column>
$parent  : Table|null

Methods

equals()  : bool
fromArray()  : Base<TypeStored, TypeAccessed>
fromYamlFile()  : Base<TypeStored, TypeAccessed>
getColumnNames()  : array<string|int, string>
getValues()  : array<string, mixed>
insertInto()  : void
inTable()  : Row
__construct()  : mixed
hookGetValue()  : mixed
addColumn()  : void

Properties

$columns

private array<string, Column> $columns = []

Methods

equals()

public equals(Base $other) : bool
Parameters
$other : Base
Return values
bool

fromArray()

public static fromArray(array<string, mixed> $array) : Base<TypeStored, TypeAccessed>
Parameters
$array : array<string, mixed>
Return values
Base<TypeStored, TypeAccessed>

fromYamlFile()

public static fromYamlFile(string $pathToFile) : Base<TypeStored, TypeAccessed>
Parameters
$pathToFile : string
Tags
throws
BaseException

if YAML does not parse to an array

Return values
Base<TypeStored, TypeAccessed>

getColumnNames()

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

getValues()

public getValues() : array<string, mixed>
Return values
array<string, mixed>

insertInto()

public insertInto(PDO $pdo) : void
Parameters
$pdo : PDO

__construct()

protected __construct(array<string, mixed> $config) : mixed
Parameters
$config : array<string, mixed>

hookGetValue()

protected hookGetValue(string $offset, Column $value) : mixed
Parameters
$offset : string
$value : Column

addColumn()

private addColumn(Column $column) : void
Parameters
$column : Column

        
On this page

Search results