Blame view

src/lib/models/eventOfflineData.php 861 Bytes
ef60cd4d   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  <?php
  class eventOfflineData extends \Phalcon\Mvc\Model
  {
      public $event_id;
      public $event_trigger;
      public $event_date;
      public $equal_fields_one;
      public $equal_fields_two;
      public $recurring_event;
      public $status;
      public $last_delivery;
      public $next_delivery;
      public $recurring_val;
      public $recurring_val_type;
      public $event_action;
  
  
      public function getSource()
      {
          return "event_offline_data";
      }
  
      public function initialize()
      {
          $this->hasOne("event_id", "eventEmail", "id");
      }
  
      public function isNew(){
  
          if($this->status){
              return false;
          } else {
              return true;
          }
      }
  
      public function isRecurring(){
          if($this->recurring_event ){
              return true;
          }else{
              return false;
          }
      }
  }