\Vegas\DIScaffoldingInterface

Interface ScaffoldingInterface

Summary

Methods
Constants
__construct()
getAdapter()
getRecord()
getForm()
setFormName()
setModelName()
doCreate()
doUpdate()
doDelete()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getRecord()

getRecord() : mixed

Returns record object If record is empty, new record will be created

Returns

mixed

getForm()

getForm(null $entity) : mixed

Creates and returns form instance

Parameters

null $entity

Returns

mixed

setFormName()

setFormName( $name) : mixed

Sets form name

Parameters

$name

Returns

mixed

setModelName()

setModelName( $name) : mixed

Sets model name

Parameters

$name

Returns

mixed

doCreate()

doCreate(array $values) : mixed

Creates new record

Parameters

array $values

Returns

mixed

doUpdate()

doUpdate( $id, array $values) : mixed

Updates existing record by its ID

Parameters

$id
array $values

Returns

mixed

doDelete()

doDelete( $id) : mixed

Deletes existing record by its ID

Parameters

$id

Returns

mixed