本文整理汇总了PHP中Flux::getEquipLocationList方法的典型用法代码示例。如果您正苦于以下问题:PHP Flux::getEquipLocationList方法的具体用法?PHP Flux::getEquipLocationList怎么用?PHP Flux::getEquipLocationList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Flux
的用法示例。
在下文中一共展示了Flux::getEquipLocationList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$errorMessage = 'Attack must be a number.';
} elseif (!is_null($matk) && !ctype_digit($matk)) {
$errorMessage = 'MATK must be a number.';
} elseif (!is_null($defense) && !ctype_digit($defense)) {
$errorMessage = 'Defense must be a number.';
} elseif (!is_null($range) && !ctype_digit($range)) {
$errorMessage = 'Range must be a number.';
} elseif (!is_null($weaponLevel) && !ctype_digit($weaponLevel)) {
$errorMessage = 'Weapon level must be a number.';
} elseif (!is_null($equipLevelMin) && !ctype_digit($equipLevelMin)) {
$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;
示例2: equipLocations
/**
*
*/
public function equipLocations($equipLoc)
{
$locations = array();
$equipLoc = (int) $equipLoc;
$equipLocs = Flux::getEquipLocationList();
foreach ($equipLocs as $bit => $name) {
if ($equipLoc & $bit) {
$locations[] = $name;
}
}
return $locations;
}
示例3: foreach
?>
/>Yes</label>
<label style="display: inline"><input type="radio" name="refineable" value="0"<?php
if (!$refineable) {
echo ' checked="checked"';
}
?>
/>No</label>
</td>
</tr>
<tr>
<th><label for="equip_locations">Equip Locations</label></th>
<td colspan="3">
<select class="multi-select" name="equip_locations[]" id="equip_locations" size="5" multiple="multiple">
<?php
foreach (Flux::getEquipLocationList() as $bit => $location) {
?>
<option value="<?php
echo htmlspecialchars($bit);
?>
"<?php
if ($equipLocs && in_array($bit, $equipLocs)) {
echo ' selected="selected"';
}
?>
>
<?php
echo htmlspecialchars($location);
?>
</option>
<?php