/** * Удаляет цель * * @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); }
/** * OffersUsers encrypted link * @return string */ public function getEncryptedId() { return Crypt::encryptUrlComponent('offer|' . $this->id); }