/**
  * {@inheritdoc}
  */
 public function jsonSerialize()
 {
     return parent::jsonSerialize() + ['id' => $this->id, 'name' => $this->name];
 }
 /**
  * {@inheritdoc}
  */
 public function jsonSerialize()
 {
     return array_filter(parent::jsonSerialize() + ['id' => $this->id, 'name' => $this->name, 'html' => trim($this->html->saveHtml()), 'created' => !empty($this->created) ? $this->created->format($this->dateFormat) : NULL, 'updated' => !empty($this->updated) ? $this->updated->format($this->dateFormat) : NULL]);
 }
 /**
  * {@inheritdoc}
  */
 public function jsonSerialize()
 {
     return parent::jsonSerialize() + ['id' => $this->id, 'name' => $this->name, 'subject' => $this->subject, 'from_email' => $this->fromEmail, 'from_name' => $this->fromName, 'lists' => $this->lists, 'template' => $this->template, 'status' => $this->status, 'status_id' => $this->statusId, 'status_label' => $this->statusLabel, 'sent_at' => $this->sentAt, 'send_time' => $this->sendTime, 'created' => $this->created->format($this->dateFormat), 'updated' => $this->created->format($this->dateFormat), 'num_recipients' => $this->numRecipients, 'is_segmented' => $this->isSegmented, 'campaign_type' => $this->campaignType];
 }
 /**
  * {@inheritdoc}
  */
 public function jsonSerialize()
 {
     return parent::jsonSerialize() + ['id' => $this->id, 'email' => $this->email];
 }
Example #5
0
 /**
  * {@inheritdoc}
  */
 public function jsonSerialize()
 {
     return parent::jsonSerialize() + ['id' => $this->id, 'name' => $this->name, 'list_type' => $this->listType, 'created' => $this->created->format($this->dateFormat), 'updated' => $this->updated->format($this->dateFormat), 'person_count' => $this->personCount, 'folder' => $this->folder];
 }