Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- namespace app;
- class CampaignSchedules extends \Illuminate\Database\Eloquent\Model
- {
- protected $fillable = ['parent_id', 'paused_reason', 'track_duplicate', 'unsubscribe_header', 'name', 'type', 'status', 'trigger_id', 'autoresponder_id', 'list_ids', 'segment_ids', 'campaign_ids', 'split_test_on', 'split_test_ids', 'smtp_ids', 'smtp_sequence', 'sending_pattern', 'masked_domain', 'masked_domain_ids', 'send_campaign', 'send_datetime', 'from_name', 'sender_option', 'from_attributes', 'notification_email', 'hourly_speed', 'unsub_show', 'track_opens', 'track_clicks', 'campaign_type', 'evergreen_data', 'user_id', 'is_save_criteria', 'is_running', 'thread_no', 'emails_sent', 'threads', 'start_datetime', 'end_datetime', 'thread_settings', 'current_smtp'];
- static public function getCampaignScheduleId($triggerId, $autoresponderId = NULL)
- {
- $campaignSchedule = self::where('trigger_id', '=', $triggerId)->when($autoresponderId, function($query) use($autoresponderId) {
- return $query->where('autoresponder_id', '=', $autoresponderId);
- })->first();
- if ($campaignSchedule === NULL) {
- return NULL;
- }
- else {
- return $campaignSchedule->id;
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement