Beta version

class Newsletter extends AbstractDateTimed

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

Methods

int
getId()

Get entity unique identifier.

setId(int $id)

No description

getCreatedAt()

No description

$this
setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

$this
setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

$this
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

in AbstractEntity at line 51
int getId()

Get entity unique identifier.

Return Value

int

in AbstractEntity at line 60
AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

in AbstractDateTimed at line 53
DateTime getCreatedAt()

Return Value

DateTime

in AbstractDateTimed at line 63
$this setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

$this

in AbstractDateTimed at line 78
DateTime getUpdatedAt()

Return Value

DateTime

in AbstractDateTimed at line 88
$this setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

$this

in AbstractDateTimed at line 98
preUpdate()

in AbstractDateTimed at line 105
prePersist()

in AbstractDateTimed at line 115
$this resetDates()

Set creation and update date to now.

Return Value

$this

at line 59
integer getStatus()

Return Value

integer

at line 69
integer setStatus(integer $status)

Parameters

integer $status

Return Value

integer

at line 76
isDraft()

at line 81
isPending()

at line 86
isSending()

at line 91
isSent()

at line 105
Node getNode()

Return Value

Node

at line 115
Node setNode(Node $node)

Parameters

Node $node

Return Value

Node

at line 130
NewsletterSubscriber getNewsletterSubscriber()

Return Value

NewsletterSubscriber

at line 139
NewsletterSubscriber setNewsletterSubscriber(NewsletterSubscriber $newsletterSubscriber)

Parameters

NewsletterSubscriber $newsletterSubscriber

Return Value

NewsletterSubscriber

at line 145
__construct($node)

Parameters

$node

at line 156
NewsletterHandler getHandler()

Return Value

NewsletterHandler

at line 164
__clone()