N°4239 Use blocks for bulk modify/transition/delete, harmonize and polish display

This commit is contained in:
Stephen Abello
2021-09-09 09:48:09 +02:00
parent 91c7ed9f4d
commit dbb84fa4e6
4 changed files with 139 additions and 69 deletions

View File

@@ -228,6 +228,20 @@ class ApplicationContext
}
return $sContext;
}
/**
* Returns the context an array of input blocks
*
* @return array The context as a sequence of <input type="hidden" /> tags
* @since 3.0.0
*/
public function GetForUIForm()
{
$aContextInputBlocks = [];
foreach ($this->aValues as $sName => $sValue) {
$aContextInputBlocks[] = InputUIBlockFactory::MakeForHidden("c[$sName]", htmlentities($sValue, ENT_QUOTES, 'UTF-8'));
}
return $aContextInputBlocks;
}
/**
* Returns the context as sequence of input tags to be inserted inside a <form> tag