\Dewdrop\Db\FieldProviderMetadata

This field provider allows checking for and instantiating fields that are associated with concrete, physical columns in the underlying database table.

Summary

Methods
Properties
Constants
__construct()
has()
instantiate()
getAllNames()
augmentSelect()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$table
N/A

Properties

$table

$table : \Dewdrop\Db\Table

The table object containing this provider.

Type

\Dewdrop\Db\Table

Methods

__construct()

__construct(\Dewdrop\Db\Table  $table) 

Create a reference to this provider's table.

Parameters

\Dewdrop\Db\Table $table

has()

has(string  $name) : boolean

Check to see if a column exists in the DB table matching the supplied name.

Parameters

string $name

Returns

boolean

instantiate()

instantiate(string  $name) : \Dewdrop\Db\Field

Create a field object for this column matching the supplied name.

Parameters

string $name

Returns

\Dewdrop\Db\Field

getAllNames()

getAllNames() : array

Get a list of the field names available from this provider.

Returns

array

augmentSelect()

augmentSelect(\Dewdrop\Db\Select  $select) : \Dewdrop\Db\Select

This is a no-op for the metadata provider.

Parameters

\Dewdrop\Db\Select $select

Returns

\Dewdrop\Db\Select