Step
class Step
This class allows the storage and retrieval of the attributes of a simulation step.
Properties
private Simulator | $simulator | ||
private int | $id | ||
private string | $name | ||
private string | $label | ||
private string | $template | ||
private string | $output | ||
private RichText|null | $description | ||
private bool | $dynamic | ||
private bool | $pdfFooter | ||
private array | $panels | ||
private array | $actions | ||
private Footnotes | $footnotes | ||
private bool | $displayable |
Methods
Constructor of class Step
Returns the Simulator object to which this step belongs
Returns the ID of this step
Sets the ID of this step
Returns the name of this step
Sets the name of this step
Returns the name of the twig template that is used to display the simulation form for this step
Sets the name of the twig template that is used to display the simulation form for this step
Returns the output of the result of the execution of the step
Sets the output of the result of the execution of the step
Returns the label of this step
Sets the label of this step
Returns the description of this step
Returns the dynamic attribute of this Step object
Returns the dynamic attribute of this Step object
Determines whether this step is dynamic or not
Returns the pdfFooter attribute of this Step object
Returns the pdfFooter attribute of this Step object
Determine whether or not a footer will be added to PDF output
Returns the list of panels of this step.
Sets the list of panels of this step.
Removes a Panel object from the list of panels of this step.
Retrieves an Panel object by its ID in the list of panels of this step
Returns the list of action buttons of this step.
Returns the list of action buttons of this step, placed at location given as parameter.
Sets the list of action buttons of this step.
Removes an Action object from the list of action buttons of this step.
Retrieves an Action object by its name in the list of action buttons of this step
Returns the footnotes container of this step
Returns the displayable attribute of this Step object
Returns the displayable attribute of this Step object
Determines whether this step can be displayed or not
Does this step contain at least one input field?
Does this step contain at least one required input field?
Details
at line 153
void
__construct(Simulator $simulator, int $id, string $name, string $label, string $template)
Constructor of class Step
at line 168
Simulator
getSimulator()
Returns the Simulator object to which this step belongs
at line 179
int
getId()
Returns the ID of this step
at line 191
void
setId(int $id)
Sets the ID of this step
at line 202
string
getName()
Returns the name of this step
at line 214
void
setName(string $name)
Sets the name of this step
at line 225
string
getTemplate()
Returns the name of the twig template that is used to display the simulation form for this step
at line 237
void
setTemplate(string $template)
Sets the name of the twig template that is used to display the simulation form for this step
at line 257
string
getOutput()
Returns the output of the result of the execution of the step
The possible values are:
- normal: the step is displayed normally.
- inlinePDF: G6K displays a PDF rendering of the generated page.
- downloadablePDF: G6K generates a PDF file of the rendering of the page to be downloaded.
- inlineFilledPDF: G6K fills a PDF Form with data.
- downloadableFilledPDF: G6K fills a PDF Form to be downloaded with data.
- html: Not implemented
at line 278
void
setOutput(string $output)
Sets the output of the result of the execution of the step
The possible values are:
- normal: the step is displayed normally.
- inlinePDF: G6K displays a PDF rendering of the generated page.
- downloadablePDF: G6K generates a PDF file of the rendering of the page to be downloaded.
- inlineFilledPDF: G6K fills a PDF Form with data.
- downloadableFilledPDF: G6K fills a PDF Form to be downloaded with data.
- html: Not implemented
at line 289
string
getLabel()
Returns the label of this step
at line 301
void
setLabel(string $label)
Sets the label of this step
at line 312
RichText|null
getDescription()
Returns the description of this step
at line 324
void
setDescription(RichText $description)
Sets the description of this step
at line 337
bool
isDynamic()
Returns the dynamic attribute of this Step object
if true, the simulation engine will use Javascript to give interactivity to the simulation for this step
at line 350
bool
getDynamic()
Returns the dynamic attribute of this Step object
if true, the simulation engine will use Javascript to give interactivity to the simulation for this step
at line 364
void
setDynamic(bool $dynamic)
Determines whether this step is dynamic or not
if true, the simulation engine will use Javascript to give interactivity to the simulation for this step
at line 377
bool
hasPdfFooter()
Returns the pdfFooter attribute of this Step object
if true, a footer will be added to the PDF outputs
at line 390
bool
getPdfFooter()
Returns the pdfFooter attribute of this Step object
if true, a footer will be added to the PDF outputs
at line 404
void
setPdfFooter(bool $pdfFooter)
Determine whether or not a footer will be added to PDF output
if true, a footer will be added to the PDF outputs
at line 415
array
getPanels()
Returns the list of panels of this step.
at line 427
void
setPanels(array $panels)
Sets the list of panels of this step.
at line 439
void
addPanel(Panel $panel)
Adds a Panel object to the list of panels of this step.
at line 451
void
removePanel(int $index)
Removes a Panel object from the list of panels of this step.
at line 463
Panel|null
getPanelById(int $id)
Retrieves an Panel object by its ID in the list of panels of this step
at line 479
array
getActions()
Returns the list of action buttons of this step.
at line 490
array
getActionsOfShapeAt($shape, $location)
Returns the list of action buttons of this step, placed at location given as parameter.
at line 504
void
setActions(array $actions)
Sets the list of action buttons of this step.
at line 516
void
addAction(Action $action)
Adds an Action object to the list of action buttons of this step.
at line 528
void
removeAction(int $index)
Removes an Action object from the list of action buttons of this step.
at line 540
Action|null
getActionByName(string $name)
Retrieves an Action object by its name in the list of action buttons of this step
at line 556
Footnotes
getFootNotes()
Returns the footnotes container of this step
at line 568
void
setFootNotes(FootNotes $footnotes)
Sets the footnotes container of this step
at line 579
bool
isDisplayable()
Returns the displayable attribute of this Step object
at line 590
bool
getDisplayable()
Returns the displayable attribute of this Step object
at line 602
void
setDisplayable(bool $displayable)
Determines whether this step can be displayed or not
at line 613
bool
hasInputFields()
Does this step contain at least one input field?
at line 629
bool
hasRequiredFields()
Does this step contain at least one required input field?