\Dewdrop\Db\FieldProviderEav

A provider for EAV fields. Enables a table object to see if a given EAV attribute exists and instantiate a field object for it.

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 containing this provider.

Type

\Dewdrop\Db\Table

Methods

__construct()

__construct(\Dewdrop\Db\Table  $table) 

Create reference to supplied table.

Parameters

\Dewdrop\Db\Table $table

has()

has(string  $name) : boolean

Check to see if the table has an EAV definition and, if so, if it has an attribute with the supplied name.

Parameters

string $name

Returns

boolean

instantiate()

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

Create a field object for the EAV attribute with the supplied name. You should check to ensure the attribute exists prior to calling this method.

Parameters

string $name

Returns

\Dewdrop\Db\Eav\Field

getAllNames()

getAllNames() : string

Get a list of the field names offered by this EAV definition.

Returns

string

augmentSelect()

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

Add the EAV values for all attributes to the provided Select.

Parameters

\Dewdrop\Db\Select $select

Returns

\Dewdrop\Db\Select