Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
src /
ContactBundle /
Entity /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
ContactMethod.php
1.14
KB
-rwxrwxr-x
2026-05-25 12:28
ContactReason.php
1.14
KB
-rwxrwxr-x
2026-05-25 12:28
MailChimpBatch.php
3.4
KB
-rwxrwxr-x
2026-04-02 11:48
Message.php
15.03
KB
-rwxrwxr-x
2026-05-18 12:51
MessageAttachment.php
1.78
KB
-rwxrwxr-x
2026-05-18 12:51
MessageCredit.php
6.23
KB
-rwxrwxr-x
2026-05-18 12:51
MessageEmbeddedImage.php
1.64
KB
-rwxrwxr-x
2026-05-18 12:51
MessageError.php
2.37
KB
-rwxrwxr-x
2026-05-18 12:51
MessageRecipient.php
8.45
KB
-rwxrwxr-x
2026-05-18 12:51
MessageStat.php
6.03
KB
-rwxrwxr-x
2026-05-18 12:51
MessageType.php
1.18
KB
-rwxrwxr-x
2026-05-25 12:28
Save
Rename
<?php namespace App\ContactBundle\Entity; use App\UserBundle\Entity\UserList; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; /** * Message * * @ORM\Table(name="contact_message") * @ORM\Entity(repositoryClass="App\ContactBundle\Repository\MessageRepository") * @ORM\HasLifecycleCallbacks */ class Message { /** * @ORM\Id * @ORM\Column(type="string", unique=true) * @ORM\GeneratedValue(strategy="CUSTOM") * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $from_name; /** * @ORM\Column(type="string", length=255) */ private $from_e_mail; /** * @ORM\Column(type="string", length=255) */ private $subject; /** * @ORM\Column(type="datetime", nullable=true) */ private $date_to_be_sent; /** * @ORM\Column(type="boolean", options={"default": false}) */ private $draft; /** * @ORM\Column(type="text") */ private $text; /** * @ORM\Column(type="text") */ private $html; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $host_name; /** * @ORM\Column(type="smallint", nullable=true) */ private $priority; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $created_by; /** * @ORM\Column(type="datetime") */ private $created_at; /** * @ORM\Column(type="datetime") */ private $updated_at; /** * @ORM\ManyToOne(targetEntity="MessageType") * @ORM\JoinColumn(name="message_type_id", referencedColumnName="id") */ private $message_type; /** * @ORM\ManyToOne(targetEntity="ContactMethod") * @ORM\JoinColumn(name="contact_method_id", referencedColumnName="id") */ private $contact_method; /** * @ORM\ManyToOne(targetEntity="ContactReason") * @ORM\JoinColumn(name="contact_reason_id", referencedColumnName="id") */ private $contact_reason; /** * @ORM\ManyToOne(targetEntity="App\UserBundle\Entity\UserList", inversedBy="message") * @ORM\JoinColumn(name="from_user_id", referencedColumnName="id") */ private $from_user; /** * @ORM\OneToMany(targetEntity="MessageRecipient", mappedBy="message", cascade={"persist", "remove"}) */ private $message_recipient; /** * @ORM\OneToMany(targetEntity="MessageAttachment", mappedBy="message", cascade={"persist", "remove"}) */ private $message_attachment; /** * @ORM\OneToMany(targetEntity="MessageEmbeddedImage", mappedBy="message", cascade={"persist", "remove"}) */ private $message_embedded_image; /** * Constructor */ public function __construct() { $this->message_recipient = new \Doctrine\Common\Collections\ArrayCollection(); $this->message_attachment = new \Doctrine\Common\Collections\ArrayCollection(); $this->message_embedded_image = new ArrayCollection(); } /** * Get id * * @return string */ public function getId() { return $this->id; } /** * Set from_name * * @param string $fromName * @return Message */ public function setFromName($fromName) { $this->from_name = $fromName; return $this; } /** * Get from_name * * @return string */ public function getFromName() { return $this->from_name; } /** * Set from_e_mail * * @param string $fromEMail * @return Message */ public function setFromEMail($fromEMail) { $this->from_e_mail = $fromEMail; return $this; } /** * Get from_e_mail * * @return string */ public function getFromEMail() { return $this->from_e_mail; } /** * Set subject * * @param string $subject * @return Message */ public function setSubject($subject) { $this->subject = $subject; return $this; } /** * Get subject * * @return string */ public function getSubject() { return $this->subject; } /** * Set date_to_be_sent * * @param \DateTime $dateToBeSent * @return Message */ public function setDateToBeSent($dateToBeSent) { $this->date_to_be_sent = $dateToBeSent; return $this; } /** * Get date_to_be_sent * * @return \DateTime */ public function getDateToBeSent() { return $this->date_to_be_sent; } /** * Set draft * * @param boolean $draft * @return Message */ public function setDraft($draft) { $this->draft = $draft; return $this; } /** * Get draft * * @return boolean */ public function getDraft() { return $this->draft; } /** * Set text * * @param string $text * @return Message */ public function setText($text) { $this->text = $text; return $this; } /** * Get text * * @return string */ public function getText() { return $this->text; } /** * Set created_by * * @param string $createdBy * @return Message */ public function setCreatedBy($createdBy) { $this->created_by = $createdBy; return $this; } /** * Get created_by * * @return string */ public function getCreatedBy() { return $this->created_by; } /** * Set created_at * * @param \DateTime $createdAt * @return Message */ public function setCreatedAt($createdAt) { $this->created_at = $createdAt; return $this; } /** * Get created_at * * @return \DateTime */ public function getCreatedAt() { return $this->created_at; } /** * Set updated_at * * @param \DateTime $updatedAt * @return Message */ public function setUpdatedAt($updatedAt) { $this->updated_at = $updatedAt; return $this; } /** * Get updated_at * * @return \DateTime */ public function getUpdatedAt() { return $this->updated_at; } /** * Add message_recipient * * @param \App\ContactBundle\Entity\MessageRecipient $messageRecipient * @return Message */ public function addMessageRecipient(\App\ContactBundle\Entity\MessageRecipient $messageRecipient) { $this->message_recipient[] = $messageRecipient; return $this; } /** * Remove message_recipient * * @param \App\ContactBundle\Entity\MessageRecipient $messageRecipient */ public function removeMessageRecipient(\App\ContactBundle\Entity\MessageRecipient $messageRecipient) { $this->message_recipient->removeElement($messageRecipient); } /** * Get message_recipient * * @return \Doctrine\Common\Collections\Collection */ public function getMessageRecipient() { return $this->message_recipient; } /** * Get message_recipient Sent * * @return \Doctrine\Common\Collections\Collection */ public function getMessageRecipientSent() { $all = $this->getMessageRecipient(); $return = array(); foreach ($all as $one) { if ($one->getSent() > 0) { $return[] = $one; } } return $return; } /** * Get message_recipient Sent * * @return \Doctrine\Common\Collections\Collection */ public function getMessageRecipientDelivered() { $all = $this->message_recipient; $return = array(); foreach ($all as $one) { foreach ($one->getMessageStat() as $mStat) { if ($mStat->getDelivered() > 0) { $return[] = $one; } } } return $return; } /** * Get message_recipient Sent * * @return \Doctrine\Common\Collections\Collection */ public function getMessageRecipientRead() { $all = $this->message_recipient; $return = array(); foreach ($all as $one) { foreach ($one->getMessageStat() as $mStat) { if ($mStat->getIsRead() > 0) { $return[] = $one; } } } return $return; } /** * Get message_recipient Sent * * @return \Doctrine\Common\Collections\Collection */ public function getMessageRecipientUnsub() { $all = $this->message_recipient; $return = array(); foreach ($all as $one) { foreach ($one->getMessageStat() as $mStat) { if ($mStat->getUnsubscribed() > 0) { $return[] = $one; } } } return $return; } /** * Get message_recipient Sent * * @return \Doctrine\Common\Collections\Collection */ public function getMessageRecipientErrors() { $all = $this->message_recipient; $return = array(); foreach ($all as $one) { if (count($one->getMessageError()) > 0) { $return[] = $one; } } return $return; } /** * Add message_attachment * * @param \App\ContactBundle\Entity\MessageAttachment $messageAttachment * @return Message */ public function addMessageAttachment(\App\ContactBundle\Entity\MessageAttachment $messageAttachment) { $this->message_attachment[] = $messageAttachment; return $this; } /** * Remove message_attachment * * @param \App\ContactBundle\Entity\MessageAttachment $messageAttachment */ public function removeMessageAttachment(\App\ContactBundle\Entity\MessageAttachment $messageAttachment) { $this->message_attachment->removeElement($messageAttachment); } /** * Get message_attachment * * @return \Doctrine\Common\Collections\Collection */ public function getMessageAttachment() { return $this->message_attachment; } /** * Set message_type * * @param \App\ContactBundle\Entity\MessageType $messageType * @return Message */ public function setMessageType(?\App\ContactBundle\Entity\MessageType $messageType = null) { $this->message_type = $messageType; return $this; } /** * Get message_type * * @return \App\ContactBundle\Entity\MessageType */ public function getMessageType() { return $this->message_type; } /** * Set contact_method * * @param \App\ContactBundle\Entity\ContactMethod $contactMethod * @return Message */ public function setContactMethod(?\App\ContactBundle\Entity\ContactMethod $contactMethod = null) { $this->contact_method = $contactMethod; return $this; } /** * Get contact_method * * @return \App\ContactBundle\Entity\ContactMethod */ public function getContactMethod() { return $this->contact_method; } /** * Set contact_reason * * @param \App\ContactBundle\Entity\ContactReason $contactReason * @return Message */ public function setContactReason(?\App\ContactBundle\Entity\ContactReason $contactReason = null) { $this->contact_reason = $contactReason; return $this; } /** * Get contact_reason * * @return \App\ContactBundle\Entity\ContactReason */ public function getContactReason() { return $this->contact_reason; } /** * Set from_user * * @param \App\UserBundle\Entity\UserList $fromUser * @return Message */ public function setFromUser(?\App\UserBundle\Entity\UserList $fromUser = null) { $this->from_user = $fromUser; return $this; } /** * Get from_user * * @return \App\UserBundle\Entity\UserList */ public function getFromUser() { return $this->from_user; } /** * @ORM\PrePersist */ public function setCreatedAtValue() { $this->setCreatedAt(new \DateTime()); } /** * @ORM\PrePersist */ public function setUpdatedAtValue() { $this->setUpdatedAt(new \DateTime()); } /** * Add message_embedded_image * * @param \App\ContactBundle\Entity\MessageEmbeddedImage $messageEmbeddedImage * @return Message */ public function addMessageEmbeddedImage(\App\ContactBundle\Entity\MessageEmbeddedImage $messageEmbeddedImage) { $this->message_embedded_image[] = $messageEmbeddedImage; return $this; } /** * Remove message_embedded_image * * @param \App\ContactBundle\Entity\MessageEmbeddedImage $messageEmbeddedImage */ public function removeMessageEmbeddedImage(\App\ContactBundle\Entity\MessageEmbeddedImage $messageEmbeddedImage) { $this->message_embedded_image->removeElement($messageEmbeddedImage); } /** * Get message_embedded_image * * @return \Doctrine\Common\Collections\Collection */ public function getMessageEmbeddedImage() { return $this->message_embedded_image; } /** * Set html * * @param string $html * @return Message */ public function setHtml($html) { $this->html = $html; return $this; } /** * Get html * * @return string */ public function getHtml() { return $this->html; } /** * Get from name as a string * * @return string */ public function getFromNameString() { return $this->getFromName() . ' - ' . $this->getFromEMail() . ' - ' . $this->getFromUser(); } /** * Get created at as a string * * @return string */ public function getCreatedAtString() { return $this->getCreatedAt()->format('j F Y H:m'); } /** * Get object as string * * @return string */ public function __toString() { return $this->getSubject(); } /** * Set hostName. * * @param string|null $hostName * * @return Message */ public function setHostName($hostName = null) { $this->host_name = $hostName; return $this; } /** * Get hostName. * * @return string|null */ public function getHostName() { return $this->host_name; } public function isDraft(): ?bool { return $this->draft; } public function getPriority() { return $this->priority; } public function setPriority($priority): self { $this->priority = $priority; return $this; } }