mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Customer portal : Added support for demo mode
SVN:trunk[4159]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user