mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
N°5741 - remove use of get_config_parameter and get_module_setting in Twig # Conflicts: # application/twigextension.class.inc.php # datamodels/2.x/itop-portal-base/portal/src/Twig/AppExtension.php # sources/application/TwigBase/Twig/Extension.php
This commit is contained in:
@@ -24,6 +24,7 @@ use AttributeDateTime;
|
||||
use Combodo\iTop\Application\UI\Base\UIBlock;
|
||||
use Combodo\iTop\Core\CMDBChange\CMDBChangeOrigin;
|
||||
use DateTime;
|
||||
use MetaModel;
|
||||
use UserRights;
|
||||
use utils;
|
||||
|
||||
@@ -74,6 +75,8 @@ class ActivityEntry extends UIBlock
|
||||
*/
|
||||
protected $sOrigin;
|
||||
|
||||
protected $bShowAuthorNameBelowEntries;
|
||||
|
||||
/**
|
||||
* ActivityEntry constructor.
|
||||
*
|
||||
@@ -94,6 +97,7 @@ class ActivityEntry extends UIBlock
|
||||
$this->SetDateTime($oDateTime);
|
||||
$this->SetAuthor($sAuthorLogin);
|
||||
$this->SetOrigin(static::DEFAULT_ORIGIN);
|
||||
$this->SetShowAuthorNameBelowEntries(MetaModel::GetConfig()->Get('activity_panel.show_author_name_below_entries'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -306,6 +310,22 @@ class ActivityEntry extends UIBlock
|
||||
return $this->sOrigin;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function ShowAuthorNameBelowEntries(): bool
|
||||
{
|
||||
return $this->bShowAuthorNameBelowEntries;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $bShowAuthorNameBelowEntries
|
||||
*/
|
||||
public function SetShowAuthorNameBelowEntries($bShowAuthorNameBelowEntries): void
|
||||
{
|
||||
$this->bShowAuthorNameBelowEntries = $bShowAuthorNameBelowEntries;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null The CSS decoration classes for the origin of the entry
|
||||
* @see \CMDBChangeOrigin
|
||||
|
||||
Reference in New Issue
Block a user