🔊 N°3731 Log calls to deprecated files / PHP methods

POC for the log API was added in #193
This commit is contained in:
Pierre Goiffon
2021-04-13 16:20:32 +02:00
parent a6d20ab648
commit 59678ef8c6
39 changed files with 248 additions and 145 deletions

View File

@@ -133,6 +133,7 @@ class AjaxPage extends WebPage implements iTabbedPage
*/
public function AddToMenu($sHtml)
{
DeprecatedCallsLog::NotifyDeprecatedPhpMethod();
$this->m_sMenu .= $sHtml;
}

View File

@@ -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 '';
}

View File

@@ -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));
}
/**

View File

@@ -1046,6 +1046,7 @@ EOF
*/
public function SelectTab($sTabContainer, $sTabCode)
{
DeprecatedCallsLog::NotifyDeprecatedPhpMethod();
$this->add_ready_script($this->m_oTabs->SelectTab($sTabContainer, $sTabCode));
}