sLabel = $sLabel; $this->sValueId = null; if (!is_null($oValue)) { $this->AddSubBlock($oValue); } } /** * @return string */ public function GetLayout(): ?string { return $this->sLayout; } /** * @param string $sLayout * * @return Field */ public function SetLayout(string $sLayout) { $this->sLayout = $sLayout; return $this; } /** * @return string */ public function GetAttCode(): ?string { return $this->sAttCode; } /** * @param string $sAttCode * * @return Field */ public function SetAttCode(string $sAttCode): Field { $this->sAttCode = $sAttCode; return $this; } /** * @return string */ public function GetAttType(): ?string { return $this->sAttType; } /** * @param string $sAttType * * @return Field */ public function SetAttType(string $sAttType): Field { $this->sAttType = $sAttType; return $this; } /** * @return string */ public function GetAttLabel(): ?string { return $this->sAttLabel; } /** * @param string $sAttLabel * * @return Field */ public function SetAttLabel(string $sAttLabel): Field { $this->sAttLabel = $sAttLabel; return $this; } /** * @return bool */ public function IsReadOnly(): bool { return $this->bIsReadOnly; } /** * @param bool $bIsReadOnly * * @return Field */ public function SetIsReadOnly(bool $bIsReadOnly) { $this->bIsReadOnly = $bIsReadOnly; return $this; } /** * @return bool */ public function IsMandatory(): bool { return $this->bIsMandatory; } /** * @param bool $bIsMandatory * * @return Field */ public function SetIsMandatory(bool $bIsMandatory) { $this->bIsMandatory = $bIsMandatory; return $this; } /** * @return bool */ public function IsMustChange(): bool { return $this->bMustChange; } /** * @param bool $bIsMustChange * * @return Field */ public function SetMustChange(bool $bIsMustChange) { $this->bMustChange = $bIsMustChange; return $this; } /** * @return bool */ public function IsMustPrompt(): bool { return $this->bMustPrompt; } /** * @param bool $bIsMustPrompt * * @return Field */ public function SetMustPrompt(bool $bIsMustPrompt) { $this->bMustPrompt = $bIsMustPrompt; return $this; } /** * @return bool */ public function IsSlave(): bool { return $this->bIsSlave; } /** * @param bool $bIsSlave * * @return Field */ public function SetIsSlave(bool $bIsSlave) { $this->bIsSlave = $bIsSlave; return $this; } /** * @return string */ public function GetValueRaw(): ?string { return $this->sValueRaw; } /** * @param string $sValueRaw * * @return Field */ public function SetValueRaw(string $sValueRaw) { $this->sValueRaw = $sValueRaw; return $this; } /** * @return string */ public function GetLabel(): string { return $this->sLabel; } /** * @param string $sLabel * * @return Field */ public function SetLabel(string $sLabel) { $this->sLabel = $sLabel; return $this; } /** * @return \Combodo\iTop\Application\UI\Base\UIBlock */ public function GetValue() { return $this->oValue; } /** * @param \Combodo\iTop\Application\UI\Base\UIBlock $oValue * * @return Field */ public function SetValue(UIBlock $oValue) { $this->oValue = $oValue; return $this; } /** * @return string */ public function GetComments(): ?string { return $this->sComments; } /** * @param string $sComments * * @return Field */ public function SetComments(string $sComments) { $this->sComments = $sComments; return $this; } /** * @return string */ public function GetValueId(): ?string { return $this->sValueId; } /** * @param string|null $sValueId * * @return $this */ public function SetValueId(?string $sValueId) { $this->sValueId = $sValueId; return $this; } public function SetInputId(string $sInputId) { $this->AddDataAttribute('input-id', $sInputId); } public function SetInputType(string $sInputType) { $this->AddDataAttribute('input-type', $sInputType); } }