Archives: refactoring of the API to enable/disable the archive mode

SVN:trunk[4696]
This commit is contained in:
Romain Quetiez
2017-04-26 15:48:24 +00:00
parent a55245d203
commit e3931274ae
8 changed files with 43 additions and 40 deletions

View File

@@ -48,7 +48,7 @@ abstract class DBSearch
public function __construct()
{
$this->m_bArchiveMode = self::GetArchiveModeDefault();
$this->m_bArchiveMode = utils::IsArchiveMode();
}
/**
@@ -62,16 +62,6 @@ abstract class DBSearch
abstract public function AllowAllData();
abstract public function IsAllDataAllowed();
static $bArchiveModeDefault = false;
static public function SetArchiveModeDefault($bEnable)
{
self::$bArchiveModeDefault = $bEnable;
}
static public function GetArchiveModeDefault()
{
return self::$bArchiveModeDefault;
}
public function SetArchiveMode($bEnable)
{
$this->m_bArchiveMode = $bEnable;