mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-26 21:54:13 +01:00
38 lines
786 B
PHP
38 lines
786 B
PHP
<?php
|
|
/*
|
|
* @copyright Copyright (C) 2010-2025 Combodo SARL
|
|
* @license http://opensource.org/licenses/AGPL-3.0
|
|
*/
|
|
|
|
namespace Combodo\iTop\Forms\Block\IO;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class FormBinding
|
|
{
|
|
public readonly AbstractFormIO $oSourceIO;
|
|
public readonly AbstractFormIO $oDestinationIO;
|
|
|
|
/**
|
|
* @param AbstractFormIO $oSourceIO
|
|
* @param AbstractFormIO $oDestinationIO
|
|
*/
|
|
public function __construct(AbstractFormIO $oSourceIO, AbstractFormIO $oDestinationIO)
|
|
{
|
|
$this->oDestinationIO = $oDestinationIO;
|
|
$this->oSourceIO = $oSourceIO;
|
|
|
|
}
|
|
|
|
/**
|
|
* Propagate binding values.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function PropagateValues(): void
|
|
{
|
|
$this->oDestinationIO->SetValues($this->oSourceIO->GetValues());
|
|
$this->oDestinationIO->GetOwnerBlock()->InputHasChanged();
|
|
}
|
|
} |