|
@@ -685,6 +685,8 @@ class AttributeFinalClass extends AttributeString
|
|
$this->m_sCode = $sCode;
|
|
$this->m_sCode = $sCode;
|
|
$aParams["allowed_values"] = null;
|
|
$aParams["allowed_values"] = null;
|
|
parent::__construct($sCode, $aParams);
|
|
parent::__construct($sCode, $aParams);
|
|
|
|
+
|
|
|
|
+ $this->m_sValue = $this->Get("default_value");
|
|
}
|
|
}
|
|
|
|
|
|
public function IsWritable()
|
|
public function IsWritable()
|
|
@@ -692,6 +694,15 @@ class AttributeFinalClass extends AttributeString
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function SetFixedValue($sValue)
|
|
|
|
+ {
|
|
|
|
+ $this->m_sValue = $sValue;
|
|
|
|
+ }
|
|
|
|
+ public function GetDefaultValue()
|
|
|
|
+ {
|
|
|
|
+ return $this->m_sValue;
|
|
|
|
+ }
|
|
|
|
+
|
|
public function GetAsHTML($sValue)
|
|
public function GetAsHTML($sValue)
|
|
{
|
|
{
|
|
return MetaModel::GetName($sValue);
|
|
return MetaModel::GetName($sValue);
|