mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
Add partial turbo event
This commit is contained in:
@@ -88,6 +88,21 @@ abstract class AbstractFormBlock implements IFormBlock
|
||||
return $this->oParent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the root form.
|
||||
*
|
||||
* @return FormBlock|CollectionBlock|null
|
||||
*/
|
||||
public function GetRoot(): FormBlock|CollectionBlock|null
|
||||
{
|
||||
$oBlock = $this;
|
||||
while (!$oBlock->IsRootBlock()) {
|
||||
$oBlock = $oBlock->GetParent();
|
||||
}
|
||||
|
||||
return $oBlock;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if this block is root.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user