本文整理汇总了PHP中Check::prepareCheckId方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::prepareCheckId方法的具体用法?PHP Check::prepareCheckId怎么用?PHP Check::prepareCheckId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Check
的用法示例。
在下文中一共展示了Check::prepareCheckId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: makeURL
/**
* Creates all Check related URLs for the site
*
* @param string $type The type of URL to make: 'list', 'add', 'edit', 'delete'
* @param Check $obj The Check object for the edit and delete URL types
* @return string The URL requested
*/
static public function makeURL($type, $obj=NULL)
{
switch ($type)
{
case 'list':
return 'check.php';
case 'add':
return 'check.php?action=add';
case 'edit':
return 'check.php?action=edit&check_id=' . $obj->prepareCheckId();
case 'delete':
return 'check.php?action=delete&check_id=' . $obj->prepareCheckId();
}
}
示例2: Check
<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"> </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>
</div>
</div>
<!--<span><?php echo Check::showGraph($check); ?></span>
<span><?php echo Check::showGraph($check,true,'-24Hours',320,true); ?></span> -->
</fieldset>
<?php
try {
$check_results->tossIfEmpty();
$affectd = fMessaging::retrieve('affected',fURL::get());
?>
<a class="btn small primary" href="<?php echo CheckResult::makeURL('ackAll', $check = new Check($check_id)) ?>">Clear All</a>
<table class="zebra-striped">
示例3: Check
<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"> </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>
</div>
<!--<span><?=Check::showGraph($check); ?></span>
<span><?=Check::showGraph($check,true,'-24Hours',320,true); ?></span> -->
</fieldset>
<?php
try {
$check_results->tossIfEmpty();
$affectd = fMessaging::retrieve('affected',fURL::get());
?>
<a class="btn small primary" href="<?=CheckResult::makeURL('ackAll', $check = new Check($check_id)); ?>">Clear All</a>
<table class="zebra-striped">