Glue
Tags
Table of Contents
Properties
- $drawStatus : bool
- Has the page already been rendered ?
- $pageParts : array<string|int, mixed>
- Array of objects and fragments to draw.
- $finalized : bool
- Is class finalized ?
- $embedName : string|null
Methods
- addItem() : mixed
- Include next element into current object.
- addItemCustom() : mixed
- Inserts another element into the object.
- afterAdd() : void
- Method executed after adding object into new one.
- draw() : string
- Recursive draw object and its contents.
- finalize() : void
- Method executed before rendering.
- setEmbedName() : bool
- Notify component about its embed name.
Properties
$drawStatus
Has the page already been rendered ?
public
bool
$drawStatus
= false
$pageParts
Array of objects and fragments to draw.
public
array<string|int, mixed>
$pageParts
= []
$finalized
Is class finalized ?
protected
bool
$finalized
= false
$embedName
private
string|null
$embedName
= null
Methods
addItem()
Include next element into current object.
public
addItem(Embedable|string $pageItem) : mixed
Parameters
- $pageItem : Embedable|string
-
value or EaseClass with draw() method
Return values
mixed —Pointer to included object
addItemCustom()
Inserts another element into the object.
public
static & addItemCustom(Embedable|string $pageItem, Embedable $context) : mixed
Parameters
- $pageItem : Embedable|string
-
value or EaseObject with draw () method
- $context : Embedable
-
Object into which elements / items are inserted
Return values
mixed —Pointer to embed object
afterAdd()
Method executed after adding object into new one.
public
afterAdd() : void
draw()
Recursive draw object and its contents.
public
draw() : string
Return values
string —Empty string
finalize()
Method executed before rendering.
public
finalize() : void
setEmbedName()
Notify component about its embed name.
public
setEmbedName(string $embedName) : bool
Parameters
- $embedName : string
-
parent::$pageParts[$embedName] == self
Return values
bool —success