mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
49 lines
997 B
PHP
49 lines
997 B
PHP
<?php
|
|
|
|
class AttributeArchiveFlag extends AttributeBoolean
|
|
{
|
|
public function __construct($sCode)
|
|
{
|
|
parent::__construct($sCode, array(
|
|
"allowed_values" => null,
|
|
"sql" => $sCode,
|
|
"default_value" => false,
|
|
"is_null_allowed" => false,
|
|
"depends_on" => array()
|
|
));
|
|
}
|
|
|
|
public function RequiresIndex()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function CopyOnAllTables()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function IsWritable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function IsMagic()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function GetLabel($sDefault = null)
|
|
{
|
|
$sDefault = Dict::S('Core:AttributeArchiveFlag/Label', $sDefault);
|
|
|
|
return parent::GetLabel($sDefault);
|
|
}
|
|
|
|
public function GetDescription($sDefault = null)
|
|
{
|
|
$sDefault = Dict::S('Core:AttributeArchiveFlag/Label+', $sDefault);
|
|
|
|
return parent::GetDescription($sDefault);
|
|
}
|
|
} |