mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
Prerequisites to the custom fields
SVN:trunk[3940]
This commit is contained in:
@@ -184,16 +184,21 @@ abstract class FormRenderer
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of Output for the form fields.
|
||||
*
|
||||
* @param array $aFieldIds An array of field ids. If specified, renders only those fields
|
||||
* @return array
|
||||
*/
|
||||
public function Render($aRequestedFields = null)
|
||||
public function Render($aFieldIds = null)
|
||||
{
|
||||
$this->InitOutputs();
|
||||
|
||||
foreach ($this->oForm->GetFields() as $oField)
|
||||
{
|
||||
if ($aRequestedFields !== null && !in_array($oField->GetId(), $aRequestedFields)) continue;
|
||||
if ($aFieldIds !== null && !in_array($oField->GetId(), $aFieldIds))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
$this->aOutputs[$oField->GetId()] = $this->PrepareOutputForField($oField);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user