本文整理汇总了PHP中Flux::getEquipUpperList方法的典型用法代码示例。如果您正苦于以下问题:PHP Flux::getEquipUpperList方法的具体用法?PHP Flux::getEquipUpperList怎么用?PHP Flux::getEquipUpperList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Flux
的用法示例。
在下文中一共展示了Flux::getEquipUpperList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$errorMessage = 'Minimum equip level must be a number.';
} elseif (!is_null($equipLevelMax) && !ctype_digit($equipLevelMax)) {
$errorMessage = 'Maximum equip level must be a number.';
} else {
if (empty($errorMessage) && is_array($equipLocs)) {
$locs = Flux::getEquipLocationList();
foreach ($equipLocs as $bit) {
if (!array_key_exists($bit, $locs)) {
$errorMessage = 'Invalid equip location specified.';
$equipLocs = null;
break;
}
}
}
if (empty($errorMessage) && is_array($equipUpper)) {
$upper = Flux::getEquipUpperList();
foreach ($equipUpper as $bit) {
if (!array_key_exists($bit, $upper)) {
$errorMessage = 'Invalid equip upper specified.';
$equipUpper = null;
break;
}
}
}
if (empty($errorMessage) && is_array($equipJobs)) {
$jobs = Flux::getEquipJobsList();
foreach ($equipJobs as $bit) {
if (!array_key_exists($bit, $jobs)) {
$errorMessage = 'Invalid equippable job specified.';
$equipJobs = null;
break;
示例2: equipUpper
/**
*
*/
public function equipUpper($equipUpper)
{
$upper = array();
$table = Flux::getEquipUpperList();
foreach ($table as $bit => $name) {
if ($equipUpper & $bit) {
$upper[] = $name;
}
}
return $upper;
}
示例3: htmlspecialchars
<?php
echo htmlspecialchars($locName);
?>
</option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<th><label for="equip_upper">Equipamento Superior</label></th>
<td colspan="3">
<select class="multi-select" name="equip_upper[]" id="equip_upper" size="5" multiple="multiple">
<?php
foreach (Flux::getEquipUpperList() as $bit => $upper) {
?>
<option value="<?php
echo htmlspecialchars($bit);
?>
"<?php
if ($equipUpper && in_array($bit, $equipUpper)) {
echo ' selected="selected"';
}
?>
>
<?php
echo htmlspecialchars($upper);
?>
</option>
<?php