Example #1
0
function ordernarItens($a, $b)
{
    $c = strcasecmp(Item::getTipoItem($a), Item::getTipoItem($b));
    if ($c == 0) {
        return strcasecmp($a->getNome(), $b->getNome());
    } else {
        return $c;
    }
}
Example #2
0
    ?>
        <a class="button right" href="<?php 
    echo WEB_PATH;
    ?>
/item-editor.php?slug=<?php 
    echo $_GET['slug'];
    ?>
">Alterar</a>
        <?php 
}
?>
        <h3><?php 
echo $item->getNome();
?>
(<?php 
echo Item::getTipoItem($item);
?>
)</h3>
    </div>
</div>
<?php 
if ($item instanceof Armadura) {
    include 'item-armadura.inc.php';
} elseif ($item instanceof Escudo) {
    include 'item-escudo.inc.php';
} elseif ($item instanceof ArmaMuscular) {
    include 'item-longe.inc.php';
} elseif ($item instanceof ArmaFogo) {
} elseif ($item instanceof Arma && !is_null($item->getArremesso())) {
    include 'item-arremesso.inc.php';
} elseif ($item instanceof Arma) {