PHP Class Pimcore\WorkflowManagement\Workflow\Service

显示文件 Open project: pimcore/pimcore Class Usage Examples

Public Methods

Method Description
createActionNote ( AbstractElement $element, string $type, string $title, string $description, array $noteData, $user = null ) : Note Creates a note for an action with a transition
createNoteData ( $fc, $value ) : array
getDataFromEditmode ( $data, $pimcoreTagName )
sendEmailNotification ( array $users, Note $note ) Sends an email

Private Methods

Method Description
getNotificationUsers ( $userIds ) Returns a list of users given an array of ID's if an ID is a role, all users associated with that role will also be returned.

Method Details

createActionNote() public static method

Creates a note for an action with a transition
public static createActionNote ( AbstractElement $element, string $type, string $title, string $description, array $noteData, $user = null ) : Note
$element Pimcore\Model\Element\AbstractElement
$type string
$title string
$description string
$noteData array
return Pimcore\Model\Element\Note $note

createNoteData() public static method

public static createNoteData ( $fc, $value ) : array
$fc - The field configuration from the Workflow
$value - The value
return array

getDataFromEditmode() public static method

public static getDataFromEditmode ( $data, $pimcoreTagName )

sendEmailNotification() public static method

Sends an email
public static sendEmailNotification ( array $users, Note $note )
$users array
$note Pimcore\Model\Element\Note