\Dewdrop\Db\FieldProviderProviderInterface

The field provider interface allows a table object to easily manage fields coming from several different sources (i.e. physical DB columns, many-to-many relationships, or EAV). By checking for and creating Field objects for this fields via the providers, the table object code is cleaner and not riddled with a bunch of if/elseif/else logic for the various field types.

Summary

Methods
Constants
has()
instantiate()
getAllNames()
augmentSelect()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

has()

has(string  $name) : boolean

Check to see if a field exists with the supplied name.

Parameters

string $name

Returns

boolean

instantiate()

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

Create a \Dewdrop\Db\Field object for the field with the given name.

Parameters

string $name

Returns

\Dewdrop\Db\Field

getAllNames()

getAllNames() : array

Get a list of field names available from this provider.

Returns

array

augmentSelect()

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

Augment the provided Select object with values from this field provider.

Parameters

\Dewdrop\Db\Select $select

Returns

\Dewdrop\Db\Select