class Newsletter extends AbstractDateTimed (View source)

Newsletters entities wrap a Node and are linked to Subscribers in order to render a HTML Email and send it over MailTransportAgent.

Constants

DRAFT

PENDING

SENDING

SENT

Properties

protected $id from AbstractEntity
protected DateTime $createdAt from AbstractDateTimed
protected DateTime $updatedAt from AbstractDateTimed

Methods

int
getId()

No description

setId(int $id)

No description

getCreatedAt()

No description

setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

resetDates()

Set creation and update date to now.

integer
getStatus()

No description

integer
setStatus(integer $status)

No description

isDraft()

No description

isPending()

No description

isSending()

No description

isSent()

No description

getNode()

No description

setNode(Node $node)

No description

setNewsletterSubscriber(NewsletterSubscriber $newsletterSubscriber)

No description

__construct($node)

No description

getHandler()

No description

__clone()

No description

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

DateTime getCreatedAt()

Return Value

DateTime

AbstractEntity setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

AbstractEntity

DateTime getUpdatedAt()

Return Value

DateTime

AbstractEntity setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

AbstractEntity

preUpdate()

prePersist()

AbstractEntity resetDates()

Set creation and update date to now.

Return Value

AbstractEntity

integer getStatus()

Return Value

integer

integer setStatus(integer $status)

Parameters

integer $status

Return Value

integer

isDraft()

isPending()

isSending()

isSent()

Node getNode()

Return Value

Node

Node setNode(Node $node)

Parameters

Node $node

Return Value

Node

NewsletterSubscriber getNewsletterSubscriber()

Return Value

NewsletterSubscriber

NewsletterSubscriber setNewsletterSubscriber(NewsletterSubscriber $newsletterSubscriber)

Parameters

NewsletterSubscriber $newsletterSubscriber

Return Value

NewsletterSubscriber

__construct($node)

Parameters

$node

NewsletterHandler getHandler()

Return Value

NewsletterHandler

__clone()