function show() { // Get only items on inventory (=1) $itemlist = array_keys($this->items, "1"); $num = count($itemlist); return array('inventario', $num == 0 ? __('INVENTORY_EMPTY') : __('INVENTORY_LIST') . enumerate($itemlist) . '.'); }
function show() { $exits = $this->exits; foreach ($exits as $exit => $o) { if (is_object($o) && property_exists($o, 'hidden') && $o->hidden == true) { unset($exits->{$exit}); } } $exits = array_keys((array) $this->exits); $num = count($exits); return array("salidas", ($num == 1 ? __('EXIT_ONLY_ONE') : __('EXIT_AVAILABLE')) . enumerate($exits) . '.'); }