mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
🔊 N°3731 Log calls to deprecated files / PHP methods
POC for the log API was added in #193
This commit is contained in:
@@ -133,6 +133,7 @@ class AjaxPage extends WebPage implements iTabbedPage
|
||||
*/
|
||||
public function AddToMenu($sHtml)
|
||||
{
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod();
|
||||
$this->m_sMenu .= $sHtml;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
use Combodo\iTop\Application\UI\Base\iUIBlock;
|
||||
use Combodo\iTop\Application\UI\Base\Layout\TabContainer\Tab\AjaxTab;
|
||||
use Combodo\iTop\Application\UI\Base\Layout\TabContainer\Tab\Tab;
|
||||
use Combodo\iTop\Application\UI\Base\Layout\TabContainer\TabContainer;
|
||||
|
||||
@@ -82,6 +81,8 @@ class TabManager
|
||||
*/
|
||||
public function GetCurrentTabLength()
|
||||
{
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -97,6 +98,8 @@ class TabManager
|
||||
*/
|
||||
public function TruncateTab(string $sTabContainer, string $sTab, int $iLength)
|
||||
{
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod();
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -293,6 +296,8 @@ class TabManager
|
||||
*/
|
||||
public function SelectTab(string $sTabContainer, string $sTabCode)
|
||||
{
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod();
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -305,6 +310,8 @@ class TabManager
|
||||
*/
|
||||
public function RenderIntoContent(string $sContent, WebPage $oPage)
|
||||
{
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod();
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
@@ -1193,6 +1193,8 @@ class WebPage implements Page
|
||||
*/
|
||||
public function GetUniqueId()
|
||||
{
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('use utils::GetUniqueId() instead');
|
||||
|
||||
return utils::GetUniqueId();
|
||||
}
|
||||
|
||||
@@ -1465,7 +1467,8 @@ EOD
|
||||
*/
|
||||
public function StartCollapsibleSection($sSectionLabel, $bOpenedByDefault = false, $sSectionStateStorageBusinessKey = '')
|
||||
{
|
||||
$this->add($this->GetStartCollapsibleSection($sSectionLabel, $bOpenedByDefault, $sSectionStateStorageBusinessKey));
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('use \\Combodo\\iTop\\Application\\UI\\Base\\Component\\CollapsibleSection\\CollapsibleSection');
|
||||
$this->add($this->GetStartCollapsibleSection($sSectionLabel, $bOpenedByDefault, $sSectionStateStorageBusinessKey));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1046,6 +1046,7 @@ EOF
|
||||
*/
|
||||
public function SelectTab($sTabContainer, $sTabCode)
|
||||
{
|
||||
DeprecatedCallsLog::NotifyDeprecatedPhpMethod();
|
||||
$this->add_ready_script($this->m_oTabs->SelectTab($sTabContainer, $sTabCode));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user