コード例 #1
0
 /**
  * @ignore
  */
 public static function gatherTimeData()
 {
     self::$output['timeTotals'] = array('total' => String::timeCalc(microtime(true) - Framework::$timestamp), 'allowed' => ini_get('max_execution_time'));
 }
コード例 #2
0
ファイル: display.php プロジェクト: eserozvataf/scabbia1
    foreach ($model['logs'] as $log) {
        if ($class === "") {
            $class = 'alt';
        } else {
            $class = "";
        }
        if ($log['type'] === 'query') {
            ?>
                    <tr>
                        <td class="<?php 
            echo $class;
            ?>
">
                            <div>
                                <div class="measure"><?php 
            echo String::timeCalc($log['consumedTime']);
            ?>
</div>
                                <div><?php 
            echo $log['message'];
            ?>
</div>
                                <div><em><?php 
            $tReplaces = array();
            foreach ($log['parameters'] as $tKey => $tVal) {
                $tReplaces[':' . $tKey] = String::squote($tVal, true);
            }
            echo strtr($log['query'], $tReplaces);
            ?>
</em></div>
                                <?php