Ejemplo n.º 1
0
 /**
  *
  * @param <ArtifactInfo> $artifactObj
  * @return <CurrentSearchParty>
  */
 public function startSearchParty($artifactObj)
 {
     settype($artifactObj, "object");
     $user = $_SESSION['loggedin_user'];
     $gameProfile = $_SESSION['game_profile'];
     $currentSearchParty = new CurrentSearchParty();
     $currentSearchParty->artifact = $artifactObj;
     $currentSearchParty->artifactLvl = $gameProfile->globalLvl;
     $currentSearchParty->progress = 0;
     $currentSearchParty->setUser($user);
     $currentSearchPartyDAO = new CurrentSearchPartyDAO();
     $currentSearchPartyDAO->addNewSearchParty($currentSearchParty);
     return $currentSearchParty;
 }
Ejemplo n.º 2
0
 /**
  *
  * @param <CurrentSearchParty> $currentSearchParty
  * @return <CurrentSearchParty>
  */
 public function updateCurrentSearchPartyProgress($currentSearchParty)
 {
     $currentSearchPartyDAO = new CurrentSearchPartyDAO();
     $updatedCSP = $currentSearchPartyDAO->updateCurrentSearchPartyProgress($currentSearchParty);
     return $updatedCSP;
 }