mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 13:08:45 +02:00
sdk test enhancement : add call itop api fix ci ci: fix broken tests ci: cover hub setup on compile and launch steps code style ci: fix ModuleDiscoveryTest redundant class + add logs to investigate ci setup issues ci: fix log during setup tests
38 lines
536 B
PHP
38 lines
536 B
PHP
<?php
|
|
|
|
namespace Combodo\iTop\HubConnector\Model;
|
|
|
|
use DBBackup;
|
|
use IssueLog;
|
|
|
|
/**
|
|
* Overload of DBBackup to handle logging
|
|
*/
|
|
class DBBackupWithErrorReporting extends DBBackup
|
|
{
|
|
protected $aInfos = [];
|
|
|
|
protected $aErrors = [];
|
|
|
|
protected function LogInfo($sMsg)
|
|
{
|
|
$this->aInfos[] = $sMsg;
|
|
}
|
|
|
|
protected function LogError($sMsg)
|
|
{
|
|
IssueLog::Error($sMsg);
|
|
$this->aErrors[] = $sMsg;
|
|
}
|
|
|
|
public function GetInfos(): array
|
|
{
|
|
return $this->aInfos;
|
|
}
|
|
|
|
public function GetErrors(): array
|
|
{
|
|
return $this->aErrors;
|
|
}
|
|
}
|