当前位置: 首页>>代码示例>>PHP>>正文


PHP Check::prepareName方法代码示例

本文整理汇总了PHP中Check::prepareName方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::prepareName方法的具体用法?PHP Check::prepareName怎么用?PHP Check::prepareName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Check的用法示例。


在下文中一共展示了Check::prepareName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Check

$tmpl->set('graphlot',true);
$tmpl->place('header');

 try {
        $check = new Check($check_id);
	$affected = fMessaging::retrieve('affected', fURL::get());
  } catch (fEmptySetException $e) {
?>
        <p class="info">There are currently no Tattle checks. <a href="<?php echo Check::makeURL('add') ?>">Add one now</a></p>
        <?php

  }
	?>

<fieldset>
        <span>Name : <?php echo $check->prepareName(); ?></span> | 
        <span>Target : <?php echo $check->prepareTarget(); ?></span>
        <div class="graphite">
                <div id="canvas" style="padding:1px">
                    <div id="graphcontainer" style="float:left;">
                        <div id="graph" style="width:600px;height:300px"></div>
                        <div id="overview" style="width:600px;height:66px"></div>
                    </div>
                     <p style="clear:left">&nbsp</p>

                      <div class="metricrow" style="display:none">
                         <span id="target" class="metricName"><?php echo $check->prepareTarget();?></span>.
                         <span id="error_threshold"><?php echo $check->prepareError();?></span>
                         <span id="warn_threshold"><?php echo $check->prepareWarn();?></span>
                         <span id="check_id"><?php echo $check->prepareCheckId();?></span> 
                      </div>
开发者ID:rberger,项目名称:Graphite-Tattle,代码行数:31,代码来源:list_check_results.php

示例2: foreach

          <th>Check</th>
          <th>Alert State</th>
          <th>Method</th>
          <th>Status</th>
          <th>Action</th>
          </tr>    
          </thead>
          <tbody>
	<?php 
    $first = TRUE;
    foreach ($subscriptions as $subscription) {
        $check = new Check($subscription->getCheckId());
        ?>
    	<tr>
        <td><?php 
        echo $check->prepareName();
        ?>
</td>
        <td>
        	<?php 
        $status_sub = $status_array[$subscription->prepareThreshold()];
        if ('Error' == $status_sub) {
            ?>
        		<span class="text-error"><?php 
            echo $status_sub;
            ?>
</span>
        	<?php 
        } else {
            ?>
        		<span class="text-warning"><?php 
开发者ID:nagyist,项目名称:Tattle,代码行数:31,代码来源:list_subscriptions.php

示例3: Check

<?php
$tmpl->set('title', 'Self Service Alerts based on Graphite metrics');
$tmpl->set('graphlot',true);
$tmpl->place('header');
 try {
        $check = new Check($check_id);
	$affected = fMessaging::retrieve('affected', fURL::get());
  } catch (fEmptySetException $e) {
?>
        <p class="info">There are currently no Tattle checks. <a href="<?=Check::makeURL('add'); ?>">Add one now</a></p>
        <?php
  } ?>
<fieldset>
        <span>Name : <?=$check->prepareName(); ?></span> | 
        <span>Target : <?=$check->prepareTarget(); ?></span>
        <div class="graphite">
                <div id="canvas" style="padding:1px">
                    <div id="graphcontainer" style="float:left;">
                        <div id="graph" style="width:600px;height:300px"></div>
                        <div id="overview" style="width:600px;height:66px"></div>
                    </div>
                     <p style="clear:left">&nbsp</p>

                      <div class="metricrow" style="display:none">
                         <span id="target" class="metricName"><?=$check->prepareTarget(); ?></span>.
                         <span id="error_threshold"><?=$check->prepareError(); ?></span>
                         <span id="warn_threshold"><?=$check->prepareWarn(); ?></span>
                         <span id="check_id"><?=$check->prepareCheckId(); ?></span> 
                      </div>

            </div>
开发者ID:nleskiw,项目名称:Graphite-Tattle,代码行数:31,代码来源:list_check_results.php


注:本文中的Check::prepareName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。