Exemplo n.º 1
0
 public function add(FootballerPrototype $footballerStructure, $activeCount)
 {
     $this->level = $footballerStructure->getParamLevel();
     $this->type = $footballerStructure->getLine();
     $this->id = $footballerStructure->getId();
     $this->isActive = $activeCount < GlobalParameters::MAX_TEAM ? 1 : 0;
     $this->isFriend = false;
     $this->super = false;
     //$currentIndex = RAM::getInstance()->getMaxObjectIndexForTeam(UserParameters::getUserId(), RAM::RAM_TYPE_FOOTBALLER);;
     //RAM::getInstance()->setFootballer($this, UserParameters::getUserId(), $currentIndex);
     return $this->save();
 }