BlockInfo
class BlockInfo
This class allows the storage and retrieval of the attributes of a block of information (blockinfo)
The blockinfo is an element of the simulation page of the same level as the field group but does not contain any input or output fields. It contains textual information that can be useful to the user in the simulation process. It can be contextualized by showing / hiding it totally or partially using the actions of business rules depending on certain conditions.
Properties
private Panel | $panel | ||
private int | $id | ||
private string | $name | ||
private string | $label | ||
private array | $chapters | ||
private bool | $displayable |
Methods
Returns the Panel object that contains this BlockInfo object
Returns the ID of this BlockInfo object
Sets the ID of this BlockInfo object
Returns the name of this BlockInfo object
Sets the name of this BlockInfo object
Returns the label of this BlockInfo object
Sets the label of this BlockInfo object
Returns the list of chapters contained in this BlockInfo object
Sets the list of chapters contained in this BlockInfo object
Adds a chapter to the list of chapters contained in this BlockInfo object
Removes a chapter from the list of chapters contained in this BlockInfo object
Retrieves a chapter by its ID in the chapter list of this BlockInfo object
Returns the displayable attribute of this BlockInfo object
Returns the displayable attribute of this BlockInfo object
Determines whether this BlockInfo can be displayed or not
Returns the class name of this BlockInfo object
Details
at line 98
void
__construct(Panel $panel, int $id)
Constructor of class BlockInfo
at line 110
Panel
getPanel()
Returns the Panel object that contains this BlockInfo object
at line 121
int
getId()
Returns the ID of this BlockInfo object
at line 133
void
setId(int $id)
Sets the ID of this BlockInfo object
at line 144
string
getName()
Returns the name of this BlockInfo object
at line 156
void
setName(string $name)
Sets the name of this BlockInfo object
at line 167
string
getLabel()
Returns the label of this BlockInfo object
at line 179
void
setLabel(string $label)
Sets the label of this BlockInfo object
at line 190
array
getChapters()
Returns the list of chapters contained in this BlockInfo object
at line 202
void
setChapters(array $chapters)
Sets the list of chapters contained in this BlockInfo object
at line 214
void
addChapter(Chapter $chapter)
Adds a chapter to the list of chapters contained in this BlockInfo object
at line 226
void
removeChapter(int $index)
Removes a chapter from the list of chapters contained in this BlockInfo object
at line 238
Chapter|null
getChapterById(int $id)
Retrieves a chapter by its ID in the chapter list of this BlockInfo object
at line 254
bool
isDisplayable()
Returns the displayable attribute of this BlockInfo object
at line 265
bool
getDisplayable()
Returns the displayable attribute of this BlockInfo object
at line 277
void
setDisplayable(bool $displayable)
Determines whether this BlockInfo can be displayed or not
at line 288
string
getClass()
Returns the class name of this BlockInfo object