Craft\Workflow_SubmissionsService::_sendEditorNotificationEmail PHP Method

_sendEditorNotificationEmail() private method

private _sendEditorNotificationEmail ( Workflow_SubmissionModel $model )
$model Workflow_SubmissionModel
    private function _sendEditorNotificationEmail(Workflow_SubmissionModel $model)
    {
        $settings = craft()->workflow->getSettings();
        $criteria = craft()->elements->getCriteria(ElementType::User);
        $criteria->groupId = $settings->editorUserGroup;
        $criteria->id = $model->editorId;
        $editor = $criteria->first();
        // Only send to the single user editor - not the whole group
        if ($editor) {
            craft()->email->sendEmailByKey($editor, 'workflow_editor_notification', array('submission' => $model));
        }
    }