Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Процессор sxQueueSendProcessor #28

Open
Marabar opened this issue Aug 9, 2016 · 0 comments
Open

Процессор sxQueueSendProcessor #28

Marabar opened this issue Aug 9, 2016 · 0 comments

Comments

@Marabar
Copy link

Marabar commented Aug 9, 2016

Привет, Василий.
Потребовалось отправка рассылки конкретному пользователю через процессор из сниппета.
Вторым параметром должен передаваться массив, а здесь вона что. И getProperty('ids') не возвращает айди рассылки.
Рабочий вариант у меня получился такой:

if (!$this->getProperties('ids')) {
    return $this->failure($this->modx->lexicon('sendex_queue_err_ns'));
}

if (is_array($this->getProperties('ids'))) {
    $ids = $this->getProperties('ids');
} else {
    $ids = explode(',', $this->getProperties('ids'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant