PHP Classes

File: third_party/DevelBar/views/develbar/hooks.php

Recommend this page to a friend!
  Classes of Simo  >  CodeIgniter Develbar  >  third_party/DevelBar/views/develbar/hooks.php  >  Download  
File: third_party/DevelBar/views/develbar/hooks.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: CodeIgniter Develbar
CodeIgniter library to show a developer toolbar
Author: By
Last change: Fix : Hooks, Allow Closure usage .
Date: 3 years ago
Size: 1,454 bytes
 

Contents

Class file image Download
<img src="<?php echo $icon ?>" title="<?php echo lang('hooks') ?>"
     alt="<?php echo lang('hooks') ?>"/> <?php echo($total_hooks > 0 ? lang('hooks') . ' (' . $total_hooks . ')' : 'N/A') ?>
<?php
if(count($loaded_hooks)): ?>
<div class="detail hooks">
    <div class="scroll">
    <?php
   
foreach ($loaded_hooks as $name => $hooks) {
        echo
'
            <p>
                <span class="left-col"><strong>'
. $name .' ['.count($hooks).']'. '</strong></span>';
                foreach(
$hooks as $key => $hook) {
                   
$border = $key == count($hooks)-1 ? '' : 'border-bottom:1px solid #57595E';
                    echo
'<span class="right-col" style="margin-left:20px;'.$border.'">';
                    if(
$hook == 'Closure'){
                        echo
'<span class="left-col" style="width:30%">&nbsp;</span>';
                        echo
'<span class="right-col" style="width:70%">' . $hook . '</span>';
                    }
                    else {
                        foreach (
$hook as $key => $value) {
                            echo
'<span class="left-col" style="width:30%">' . $key . ':</span>';
                            echo
'<span class="right-col" style="width:70%">' . (!is_array($value) ? $value : var_dump($value)) . '</span>';
                        }
                    }

                    echo
'</span>';
                }

        echo
'</p>';
    }
   
?>
</div>
</div>
<?php endif; ?>

For more information send a message to info at phpclasses dot org.