本文整理汇总了PHP中Check::prepareError方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::prepareError方法的具体用法?PHP Check::prepareError怎么用?PHP Check::prepareError使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Check
的用法示例。
在下文中一共展示了Check::prepareError方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<?php
$first = TRUE;
foreach ($check_results as $check_result) {
$check = new Check($check_result->getCheck_Id());
?>
<tr>
<td><?php
echo $status_array[$check_result->prepareStatus()];
?>
</td>
<td><?php
echo $check_result->prepareValue();
?>
</td>
<td><?php
echo $check->prepareError();
?>
</td>
<td><?php
echo $check->prepareWarn();
?>
</td>
<td><?php
echo $check_result->prepareState();
?>
</td>
<td><?php
echo $check_result->prepareTimestamp('Y-m-d H:i:s');
?>
</td>
</tr>
示例2: Check
<th>Status</th>
<th>Value</th>
<th>Error</th>
<th>Warn</th>
<th>State</th>
<th>Time</th>
</tr>
<?php
$first = TRUE;
foreach ($check_results as $check_result) {
$check = new Check($check_result->getCheck_Id());
?>
<tr>
<td><?php echo ($check_result->prepareStatus() == 2 ? 'Warning' : 'Error'); ?></td>
<td><?php echo $check_result->prepareValue() ?></td>
<td><?php echo $check->prepareError() ?></td>
<td><?php echo $check->prepareWarn() ?></td>
<td><?php echo $check_result->prepareState() ?></td>
<td><?php echo $check_result->prepareTimestamp('Y-m-d H:i:s'); ?></td>
<?php /*<div id="graphite-event-modal_<?php echo $check_result->getResult_Id(); ?>" class="modal hide fade">
<div class="modal-header">
<a href="#" class="close">×</a>
<h3>view Event</h3>
</div>
<div class="modal-body">
Event Details
</div>
</div>*/ ?>
</tr>
<?php } ?>
</table></div>
示例3: Check
<th>Status</th>
<th>Value</th>
<th>Error</th>
<th>Warn</th>
<th>State</th>
<th>Time</th>
</tr>
<?php
$first = TRUE;
foreach ($check_results as $check_result) {
$check = new Check($check_result->getCheck_Id());
?>
<tr>
<td><?=($check_result->prepareStatus() == 2 ? 'Warning' : 'Error'); ?></td>
<td><?=$check_result->prepareValue(); ?></td>
<td><?=$check->prepareError(); ?></td>
<td><?=$check->prepareWarn(); ?></td>
<td><?=$check_result->prepareState(); ?></td>
<td><?=$check_result->prepareTimestamp('Y-m-d H:i:s'); ?></td>
</tr>
<?php } ?>
</table></div>
<?
//check to see if paging is needed
$total_pages = ceil($check_results->count(TRUE) / $GLOBALS['PAGE_SIZE']);
if ($total_pages > 1) {
$prev_class = 'previous';
$current_link = fURL::get() . "?action=$action&check_id=$check_id";
$prev_link = $current_link . '&page=' . ($page_num - 1);
$next_class = 'next';
$next_link = $current_link . '&page=' . ($page_num + 1);