1 | <?php |
||
2 | |||
3 | namespace LibreNMS\Plugins; |
||
4 | |||
5 | class Test |
||
6 | { |
||
7 | public static function menu() |
||
8 | { |
||
9 | echo '<li><a href="plugin/p=Test">Test</a></li>'; |
||
10 | } |
||
11 | |||
12 | //end menu() |
||
13 | |||
14 | public function device_overview_container($device) |
||
0 ignored issues
–
show
|
|||
15 | { |
||
16 | echo '<div class="container-fluid"><div class="row"> <div class="col-md-12"> <div class="panel panel-default panel-condensed"> <div class="panel-heading"><strong>' . get_class() . ' Plugin </strong> </div>'; |
||
17 | echo ' Example plugin in "Device - Overview" tab <br>'; |
||
18 | echo '</div></div></div></div>'; |
||
19 | } |
||
20 | |||
21 | public function port_container($device, $port) |
||
22 | { |
||
23 | echo '<div class="container-fluid"><div class="row"> <div class="col-md-12"> <div class="panel panel-default panel-condensed"> <div class="panel-heading"><strong>' . get_class() . ' plugin in "Port" tab</strong> </div>'; |
||
24 | echo 'Example display in Port tab</br>'; |
||
25 | echo '</div></div></div></div>'; |
||
26 | } |
||
27 | } |
||
28 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.