Exemple #1
0
 /**
  * Get all item's wear by players in array
  *
  * @param string $objectString
  */
 public function getItems($objectString)
 {
     $objectArray = [];
     if (!empty($objectString)) {
         $objectIds = explode('|', $objectString);
         foreach ($objectIds as $objectId) {
             if (!empty($objectId)) {
                 array_push($objectArray, $objectId);
             }
         }
     }
     $items = ItemManager::select('stats', 'panoplie')->join('item_template', 'item_template.id', '=', 'items.template')->whereIn('guid', $objectArray)->where('pos', '!=', '-1')->get();
     return $items;
 }