class PreLoadEventArgs extends LifecycleEventArgs (View source)

Class that holds event arguments for a preLoad event.

Methods

object
getDocument()

Retrieves the associated document.

getDocumentManager()

Retrieves the associated DocumentManager.

__construct(object $document, DocumentManager $dm, array $data)

Constructor.

array
getData()

Get the array of data to be loaded and hydrated.

Details

object getDocument()

Retrieves the associated document.

Return Value

object

DocumentManager getDocumentManager()

Retrieves the associated DocumentManager.

Return Value

DocumentManager

__construct(object $document, DocumentManager $dm, array $data)

Constructor.

Parameters

object $document
DocumentManager $dm
array $data Array of data to be loaded and hydrated

array getData()

Get the array of data to be loaded and hydrated.

Return Value

array