\Dewdrop\Fields\RowEditor\LinkLinkInterface

One of the primary purposes of the \Dewdrop\Fields\RowEditor class is to link rows objects to the database fields in a \Dewdrop\Fields collection.

Row objects are needed for editing because they provide a much nicer API for saving and working with custom row-level business logic.

When implementing a LinkInterface class, your constructor should receive any dependencies needed for its look-up, which will be performed in the link() method.

Summary

Methods
Constants
link()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

link()

link(\Dewdrop\Db\Table  $table) : \Dewdrop\Db\Row

Return a row from the supplied table, using the linker's rules to pull in any values needed for the look-up.

Parameters

\Dewdrop\Db\Table $table

Returns

\Dewdrop\Db\Row