Customer portal : Added support for demo mode

SVN:trunk[4159]
This commit is contained in:
Guillaume Lajarige
2016-05-30 08:12:17 +00:00
parent ae52521a3f
commit f640558349
3 changed files with 32 additions and 5 deletions

View File

@@ -425,6 +425,21 @@ class Form
return $bRet;
}
/**
* Forces the form to a read only state by setting read only to true on all its fields
*
* @return \Combodo\iTop\Form\Form
*/
public function MakeReadOnly()
{
foreach ($this->GetFields() as $oField)
{
$oField->SetReadOnly(true);
}
return $this;
}
/**
* @param $sFormPath
* @return Form|null