本文整理汇总了PHP中Debugger::get_modules方法的典型用法代码示例。如果您正苦于以下问题:PHP Debugger::get_modules方法的具体用法?PHP Debugger::get_modules怎么用?PHP Debugger::get_modules使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Debugger
的用法示例。
在下文中一共展示了Debugger::get_modules方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
echo count(Debugger::get_files());
?>
)
</li>
<?php
}
?>
<!-- Modules -->
<?php
if (Kohana::$config->load('debugger.panels.modules')) {
?>
<li id="toggle-modules" onclick="debugToolbar.show('debug-modules'); return false;">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHhSURBVDjLpZI9SJVxFMZ/r2YFflw/kcQsiJt5b1ije0tDtbQ3GtFQYwVNFbQ1ujRFa1MUJKQ4VhYqd7K4gopK3UIly+57nnMaXjHjqotnOfDnnOd/nt85SURwkDi02+ODqbsldxUlD0mvHw09ubSXQF1t8512nGJ/Uz/5lnxi0tB+E9QI3D//+EfVqhtppGxUNzCzmf0Ekojg4fS9cBeSoyzHQNuZxNyYXp5ZM5Mk1ZkZT688b6thIBenG/N4OB5B4InciYBCVyGnEBHO+/LH3SFKQuF4OEs/51ndXMXC8Ajqknrcg1O5PGa2h4CJUqVES0OO7sYevv2qoFBmJ/4gF4boaOrg6rPLYWaYiVfDo0my8w5uj12PQleB0vcp5I6HsHAUoqUhR29zH+5B4IxNTvDmxljy3x2YCYUwZVlbzXJh9UKeQY6t2m0Lt94Oh5loPdqK3EkjzZi4MM/Y9Db3MTv/mYWVxaqkw9IOATNR7B5ABHPrZQrtg9sb8XDKa1+QOwsri4zeHD9SAzE1wxBTXz9xtvMc5ZU5lirLSKIz18nJnhOZjb22YKkhd4odg5icpcoyL669TAAujlyIvmPHSWXY1ti1AmZ8mJ3ElP1ips1/YM3H300g+W+51nc95YPEX8fEbdA2ReVYAAAAAElFTkSuQmCC" alt="modules">
modules (<?php
echo count(Debugger::get_modules());
?>
)
</li>
<?php
}
?>
<!-- Routes -->
<?php
if (Kohana::$config->load('debugger.panels.routes')) {
?>
<li id="toggle-routes" onclick="debugToolbar.show('debug-routes'); return false;">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHYSURBVDjLlVLPS1RxHJynpVu7KEn0Vt+2l6IO5qGCIsIwCPwD6hTUaSk6REoUHeoQ0qVAMrp0COpY0SUIPVRgSl7ScCUTst6zIoqg0y7lvpnPt8MWKuuu29w+hxnmx8dzzmE5+l7mxk1u/a3Dd/ejDjSsII/m3vjJ9MF0yt93ZuTkdD0CnnMO/WOnmsxsJp3yd2zfvA3mHOa+zuHTjy/zojrvHX1YqunAZE9MlpUcZAaZQBNIZUg9XdPBP5wePuEO7eyGQXg29QL3jz3y1oqwbvkhCuYEOQMp/HeJohCbICMUVwr0DvZcOnK9u7GmQNmBQLJCgORxkneqRmAs0BFmDi0bW9E72PPda/BikwWi0OEHkNR14MrewsTAZF+lAAWZEH6LUCwUkUlntrS1tiG5IYlEc6LcjYjSYuncngtdhakbM5dXlhgTNEMYLqB9q49MKgsPjTBXntVgkDNIgmI1VY2Q7QzgJ9rx++ci3ofziBYiiELQEUAyhB/D29M3Zy+uIkDIhGYvgeKvIkbHxz6Tevzq6ut+ANh9fldetMn80OzZVVdgLFjBQ0tpEz68jcB4ifx3pQeictVXIEETnBPCKMLEwBIZAPJD767V/ETGwsjzYYiC6vzEP9asLo3SGuQvAAAAAElFTkSuQmCC" alt="routes">
routes (<?php
echo count(Debugger::get_routes());
示例2: foreach
<div id="debug-modules" class="top" style="display: none;">
<h1>Modules</h1>
<table cellspacing="0" cellpadding="0">
<tr align="left">
<th>name</th>
<th>path</th>
</tr>
<?php
foreach (Debugger::get_modules() as $name => $path) {
?>
<tr class="<?php
echo Text::alternate('odd', 'even');
?>
">
<td><?php
echo $name;
?>
</td>
<td><?php
echo $path;
?>
</td>
</tr>
<?php
}
?>
</table>
</div>
示例3: _collect_data
/**
* Collect the data
*
* @static
*/
protected static function _collect_data()
{
Debugger::get_benchmark_application();
if (Kohana::$config->load('debugger.panels.benchmarks')) {
Debugger::get_benchmark_groups();
}
if (Kohana::$config->load('debugger.panels.database')) {
Debugger::get_database_queries();
}
if (Kohana::$config->load('debugger.panels.files')) {
Debugger::get_files();
}
if (Kohana::$config->load('debugger.panels.modules')) {
Debugger::get_modules();
}
if (Kohana::$config->load('debugger.panels.routes')) {
Debugger::get_routes();
}
if (Kohana::$config->load('debugger.panels.messages')) {
Debugger::get_messages();
}
if (Kohana::$config->load('debugger.panels.stacktraces')) {
Debugger::get_stacktraces();
}
}