public function saveInviteLog($invitesId, $inviterId, $inviteeId, $action = NULL, $timestamp = NULL, $escort_log, $client_log)
 {
     $flag = "0";
     $dto = new HAMMU_BOL_InvitesLog();
     $dto->setinvitesId($invitesId);
     $dto->setInviterId($inviterId);
     $dto->setInviteeId($inviteeId);
     $dto->setAction($action);
     $dto->setData($timestamp);
     $dto->setflag($flag);
     $dto->setEscortLog($escort_log);
     $dto->setClientLog($client_log);
     $dto->timestamp = time();
     $this->save($dto);
 }
示例#2
0
 /**
  * Save new invites request
  *
  * @param integer $requesterId
  * @param integer $userId
  */
 public function saveInviteLog($invitesId, $inviterId, $inviteeId, $action)
 {
     //        $ex = new OW_Example();
     //        $ex->andFieldEqual('inviterId', $inviterId)
     //                ->andFieldEqual('inviteeId', $inviteeId);
     //
     //        $dto = $this->findObjectByExample($ex);
     //
     //        $itWasIgnoredByRequester = $dto !== null;
     //
     //        if ($itWasIgnoredByRequester) {
     //            $this->save(
     //                    $dto->setStatus('active')
     //            );
     //
     //            return;
     //        }
     $dto = new HAMMU_BOL_InvitesLog();
     $dto->setinvitesId($invitesId);
     $dto->setInviterId($inviterId);
     $dto->setInviteeId($inviteeId);
     $dto->setAction($action);
     $dto->timestamp = time();
     $this->save($dto);
 }
 /**
  * Save new invites request
  *
  * @param integer $requesterId
  * @param integer $userId
  */
 public function saveInviteLog($invitesId, $inviterId, $inviteeId, $action = NULL, $timestamp = NULL, $escort_log, $client_log)
 {
     //exit;
     //        $ex = new OW_Example();
     //        $ex->andFieldEqual('inviterId', $inviterId)
     //                ->andFieldEqual('inviteeId', $inviteeId);
     //
     //        $dto = $this->findObjectByExample($ex);
     //
     //        $itWasIgnoredByRequester = $dto !== null;
     //
     //        if ($itWasIgnoredByRequester) {
     //            $this->save(
     //                    $dto->setStatus('active')
     //            );
     //
     //            return;
     //        }
     $flag = "0";
     $dto = new HAMMU_BOL_InvitesLog();
     $dto->setinvitesId($invitesId);
     $dto->setInviterId($inviterId);
     $dto->setInviteeId($inviteeId);
     $dto->setAction($action);
     $dto->setData($timestamp);
     $dto->setflag($flag);
     $dto->setEscortLog($escort_log);
     $dto->setClientLog($client_log);
     $dto->timestamp = time();
     $this->save($dto);
 }
示例#4
0
 public function saveInviteLog($invitesId, $inviterId, $inviteeId, $action = NULL, $timestamp = NULL, $escort_log, $client_log)
 {
     if ($action == "escort_decline" || $action == "buy_rose_client" || $action == "reject" || $action == "escort_propose_date_decline") {
         $flag = "1";
     } else {
         $flag = "0";
     }
     $dto = new HAMMU_BOL_InvitesLog();
     $dto->setinvitesId($invitesId);
     $dto->setInviterId($inviterId);
     $dto->setInviteeId($inviteeId);
     $dto->setAction($action);
     $dto->setData($timestamp);
     $dto->setflag($flag);
     $dto->setEscortLog($escort_log);
     $dto->setClientLog($client_log);
     $dto->timestamp = time();
     $this->save($dto);
     return $dto->id;
 }