mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
N°8772 - Form dependencies manager implementation - WIP
This commit is contained in:
@@ -8,6 +8,8 @@ class FormInput
|
||||
|
||||
private string $sType;
|
||||
|
||||
private array $aConnections = [];
|
||||
|
||||
public function __construct(string $sName, string $sType)
|
||||
{
|
||||
$this->sName = $sName;
|
||||
@@ -33,4 +35,19 @@ class FormInput
|
||||
{
|
||||
$this->sType = $sType;
|
||||
}
|
||||
|
||||
public function Connect(string $sOutputBlockName, string $sOutputName)
|
||||
{
|
||||
$this->aConnections[] = ['block' => $sOutputBlockName, 'output' => $sOutputName];
|
||||
}
|
||||
|
||||
public function GetConnections(): array
|
||||
{
|
||||
return $this->aConnections;
|
||||
}
|
||||
|
||||
public function HasConnections(): bool
|
||||
{
|
||||
return count($this->aConnections) > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user