Example #1
0
 public function putInBank(SR_Item $item)
 {
     if ($item->isItemStackable()) {
         if (false !== ($other = $this->getBankItemByName($item->getItemName()))) {
             $other->increase('sr4it_amount', $item->getAmount());
             return $item->delete();
         }
     }
     $this->sr4_bank[$item->getID()] = $item;
     return $item->changePosition('bank');
     // 		$bank = $this->getBankItems();
     // 		$bank[$item->getID()] = $item;
     // 		return $this->updateBank($bank);
 }