Пример #1
0
 public function MakeTitleString()
 {
     if ($this->viewSearch != "") {
         return "Search Results For: " . $this->viewSearch;
     } elseif ($this->viewType >= 0 && $this->viewEquipType >= 0 && $this->viewWeaponType >= 0) {
         $typeName = GetEsoItemTypeText($this->viewType);
         $equipTypeName = GetEsoItemEquipTypeText($this->viewEquipType);
         $weaponType = GetEsoItemWeaponTypeText($this->viewWeaponType);
         return "{$weaponType} {$equipTypeName} {$typeName} Items";
     } elseif ($this->viewType >= 0 && $this->viewEquipType >= 0 && $this->viewArmorType >= 0) {
         $typeName = GetEsoItemTypeText($this->viewType);
         $equipTypeName = GetEsoItemEquipTypeText($this->viewEquipType);
         $armorType = GetEsoItemArmorTypeText($this->viewArmorType);
         return "{$armorType} {$equipTypeName} {$typeName} Items";
     } elseif ($this->viewType >= 0 && $this->viewEquipType >= 0) {
         $typeName = GetEsoItemTypeText($this->viewType);
         $equipTypeName = GetEsoItemEquipTypeText($this->viewEquipType);
         return "{$equipTypeName} {$typeName} Items";
     } else {
         if ($this->viewType >= 0) {
             $typeName = GetEsoItemTypeText($this->viewType);
             return "{$typeName} Items";
         } else {
             return "All Items";
         }
     }
 }
Пример #2
0
 private function MakeItemSubTypeText()
 {
     $type = $this->itemRecord['type'];
     if ($type <= 0) {
         return "";
     }
     if ($type == 2) {
         if ($this->itemRecord['armorType'] > 0) {
             return "(" . GetEsoItemArmorTypeText($this->itemRecord['armorType']) . ")";
         }
         return "";
     } elseif ($type == 1) {
         return "(" . GetEsoItemWeaponTypeText($this->itemRecord['weaponType']) . ")";
     }
     return "";
 }