implements |
UIBuilderInterface |
|---|---|
uses |
AttachmentManagerTrait |
A builder to build user interfaces.
User interfaces built by adding "blocks" using the addBlock() method. A block is essentially a piece of HTML code that can be inserted in a particular order.
In addition to blocks, attachments can also be added. Attachments can be things such as CSS style sheets, Javascript references or Javascript code. Each attachment is associated with a type.
| Methods | ||
|---|---|---|
public
|
addBlock(string $id, string $content, int $weight = 0, array $additional = []): UIBuilder
|
# |
public
|
merge(UIBuilderInterface $builder)
|
# |
public
|
getBlocks(): array
|
# |
public
|
getBlockData(): array
|
# |
public
|
reset()
|
# |
| Methods used from SimpleID\Util\UI\AttachmentManagerTrait |
|---|
addAttachment(), getAttachments(), getAttachmentTypes(), getAttachmentsByType(), mergeAttachments(), resetAttachments() |
| Constants inherited from SimpleID\Util\UI\AttachmentManagerInterface |
|---|
|
| Properties | |||
|---|---|---|---|
protected
|
array<array<mixed>>
|
$blocks = []
|
# |
| Properties used from SimpleID\Util\UI\AttachmentManagerTrait |
|---|
$attachments |