Пример #1
0
 public function getData($hero, $heroLevel, $items = array())
 {
     $data = array();
     //array_merge($data,$this->getHeroData(HeroPeer::retrieveByPK($hero),$heroLevel));
     $data = $this->getHeroData(HeroPeer::retrieveByPK($hero), $heroLevel);
     if (!empty($items)) {
         foreach ($items as $item) {
             $data[] = $this->getItemData(ItemPeer::retrieveByPK($item));
         }
     }
     return $data;
 }