N°2847 - Prepare object details header for demo (will be reworked)

This commit is contained in:
Molkobain
2020-09-29 14:45:06 +02:00
parent 40f3d6efbe
commit f25ef7f5ac
6 changed files with 113 additions and 20 deletions

View File

@@ -16,12 +16,18 @@ class TitleForObjectDetails extends Title
protected $sClassName;
/** @var string */
protected $sObjectName;
protected $sStatusCode;
protected $sStatusLabel;
protected $sStatusColor;
public function __construct(string $sClassName, string $sObjectName, ?string $sId = null)
{
parent::__construct('', 2, $sId);
$this->sClassName = $sClassName;
$this->sObjectName = $sObjectName;
$this->sStatusCode = null;
$this->sStatusLabel = null;
$this->sStatusColor = null;
}
/**
@@ -40,5 +46,27 @@ class TitleForObjectDetails extends Title
return $this->sObjectName;
}
public function SetStatus($sCode, $sLabel, $sColor)
{
$this->sStatusCode = $sColor;
$this->sStatusLabel = $sLabel;
$this->sStatusColor = $sColor;
return $this;
}
public function GetStatusCode()
{
return $this->sStatusCode;
}
public function GetStatusLabel()
{
return $this->sStatusLabel;
}
public function GetStatusColor()
{
return $this->sStatusColor;
}
}