DependencyEntityFactory

Object to create and keep track of element or reference entities.

Table of Contents

Properties

$elements  : array<string|int, mixed>
$references  : array<string|int, mixed>

Methods

getElement()  : ElementEntity
Gets and registers a new element.
getReference()  : ReferenceEntity
Gets and registers a new reference.
getReferencedElement()  : ReferenceEntity
Gets and registers a new reference.

Properties

$elements

protected array<string|int, mixed> $elements = []

$references

protected array<string|int, mixed> $references = []

Methods

getReferencedElement()

Gets and registers a new reference.

public getReferencedElement(string $table, int $id, string $field, array<string|int, mixed> $data, DependencyResolver $dependency) : ReferenceEntity
Parameters
$table : string
$id : int
$field : string
$data : array<string|int, mixed>

(optional)

$dependency : DependencyResolver
Tags
see
getElement
see
getReference
Return values
ReferenceEntity

        
On this page

Search results