Ejemplo n.º 1
0
 /**
  * Удаляет цель
  *
  * @param CampaignsActions $action
  *
  * @return bool
  */
 public function delAction(CampaignsActions $action)
 {
     $encryptedId = Crypt::encryptUrlComponent($action->id);
     $key = $this->getCampaignActionsKey($action->campaign_id);
     $this->redis()->sRem($key, $encryptedId);
     $key = $this->getActionKey($encryptedId);
     $this->redis()->del($key);
 }
Ejemplo n.º 2
0
 /**
  * OffersUsers encrypted link
  * @return string
  */
 public function getEncryptedId()
 {
     return Crypt::encryptUrlComponent('offer|' . $this->id);
 }