Example #1
0
 public function MakeBreadCrumbBlock()
 {
     $output .= "&lt; <a href='?'>All Items</a>";
     if ($this->viewSearch != "") {
         return $output;
     }
     if ($this->viewType < 0 && $this->viewEquipType < 0) {
         return "";
     }
     if ($this->viewType >= 0 && $this->viewEquipType >= 0) {
         $type = $this->viewType;
         $typeName = GetEsoItemTypeText($this->viewType);
         $output .= ": <a href='?type={$type}'>{$typeName}</a>";
     }
     if ($this->viewType >= 0 && $this->viewEquipType >= 0 && $this->viewWeaponType >= 0 || $this->viewType >= 0 && $this->viewEquipType >= 0 && $this->viewArmorType >= 0) {
         $type = $this->viewType;
         $equipType = $this->viewEquipType;
         $equipTypeName = GetEsoItemEquipTypeText($this->viewEquipType);
         $output .= ": <a href='?type={$type}&equiptype={$equipType}'>{$equipTypeName}</a>";
     }
     return $output;
 }
Example #2
0
 private function MakeItemTypeText()
 {
     switch ($this->itemRecord['type']) {
         case 1:
         case 2:
             return GetEsoItemEquipTypeText($this->itemRecord['equipType']);
         case 4:
             return "Food";
         default:
             return GetEsoItemTypeText($this->itemRecord['type']);
     }
 }