Row
extends Base
in package
Tags
Table of Contents
Properties
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
= []
$parent
private
Table|null
$parent
= null
Methods
equals()
public
equals(Base $other) : bool
Parameters
- $other : Base
Return values
boolfromArray()
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
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
inTable()
public
inTable(Table $parent) : Row
Parameters
- $parent : Table
Return values
Row__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