class NewsletterHandler extends AbstractHandler (View source)

Handle operations with newsletters entities.

Properties

protected ObjectManager $objectManager from AbstractHandler

Methods

ObjectManager
getObjectManager()

No description

setObjectManager(ObjectManager $objectManager)

No description

__construct(ObjectManager $objectManager)

AbstractHandler constructor.

int
cleanPositions(bool $setPositions = true)

Clean positions for current entity siblings.

getNewsletter()

No description

$this
setNewsletter(Newsletter $newsletter = null)

No description

duplicate()

Duplicate newsletter

Details

ObjectManager getObjectManager()

Return Value

ObjectManager

AbstractHandler setObjectManager(ObjectManager $objectManager)

Parameters

ObjectManager $objectManager

Return Value

AbstractHandler

__construct(ObjectManager $objectManager)

AbstractHandler constructor.

Parameters

ObjectManager $objectManager

int cleanPositions(bool $setPositions = true)

Clean positions for current entity siblings.

Parameters

bool $setPositions

Return Value

int Return the next position after the last entity

Newsletter getNewsletter()

Return Value

Newsletter

$this setNewsletter(Newsletter $newsletter = null)

Parameters

Newsletter $newsletter

Return Value

$this

duplicate()

Duplicate newsletter