\Dewdrop\Fields\RowEditor\LinkQueryString

Create a row object to attach to all the fields from the supplied \Dewdrop\Db\Table using the value of a query string variable. This linker is often used for the primary row on an edit page, where the row's primary key value is passed from a listing to the edit page in the query string.

Summary

Methods
Properties
Constants
__construct()
link()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\Dewdrop\Request  $request, string  $variableName) 

Provide the \Dewdrop\Request object and query string variable name that will be used to get or create the row object.

Parameters

\Dewdrop\Request $request
string $variableName

link()

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

Provide a row that can be linked to all the fields from the supplied table. If the query string variable has a value, we'll attempt to get the row from the table's find() method. Otherwise, we'll create a new row.

Parameters

\Dewdrop\Db\Table $table

Returns

\Dewdrop\Db\Row