Пример #1
0
 /**
  * Returns list of items that stored in guild bank
  * @category Guilds class
  * @example Guilds::BuildGuildBankItemList()
  * @return array
  **/
 public function BuildGuildBankItemList()
 {
     if (!$this->guildId) {
         return false;
     }
     $items = $this->cDB->select("SELECT `item_entry` AS `entry` FROM `guild_bank_item` WHERE `guildid`=?", $this->guildId);
     if ($items) {
         $count = count($items);
         for ($i = 0; $i < $count; $i++) {
             $items[$i]['name'] = Items::getItemName($items[$i]['entry']);
             $items[$i]['icon'] = Items::getItemIcon($items[$i]['entry']);
             $items[$i]['Quality'] = Items::getItemInfo($items[$i]['entry'], 'quality');
         }
         return $items;
     }
     return false;
 }