r2179 - introduce frame code for RackCode analysis
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 28 Aug 2008 23:27:20 +0000 (23:27 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 28 Aug 2008 23:27:20 +0000 (23:27 +0000)
inc/code.php
inc/interface.php
inc/navigation.php

index 41b085a..946a9c3 100644 (file)
@@ -686,4 +686,10 @@ function locateSyntaxError ($stack)
        return 0;
 }
 
+function getRackCodeWarnings ($code)
+{
+       $ret = array ('message 0' => 'this is a dummy message');
+       return $ret;
+}
+
 ?>
index 4cee52b..fb08103 100644 (file)
@@ -3571,6 +3571,20 @@ function renderLocalReports ()
        renderReports ($localreports);
 }
 
+function renderRackCodeReports ()
+{
+       $rcr = array
+       (
+               array
+               (
+                       'title' => 'Warnings',
+                       'type' => 'counters',
+                       'func' => 'getRackCodeWarnings'
+               ),
+       );
+       renderReports ($rcr);
+}
+
 function renderReports ($what)
 {
        if (!count ($what))
index b9818ab..646d008 100644 (file)
@@ -539,9 +539,11 @@ $msgcode['myaccount']['mypassword']['changeMyPassword']['ERR4'] = 153;
 $page['reports']['title'] = 'Reports';
 $page['reports']['parent'] = 'index';
 $tab['reports']['default'] = 'System';
+$tab['reports']['rackcode'] = 'RackCode';
 $tab['reports']['local'] = 'Local';
 $trigger['reports']['local'] = 'trigger_localreports';
 $tabhandler['reports']['default'] = 'renderSystemReports';
+$tabhandler['reports']['rackcode'] = 'renderRackCodeReports';
 $tabhandler['reports']['local'] = 'renderLocalReports';
 
 // This function returns array if page numbers leading to the target page