Slavik
Guest
offline
On poll imports from IPS we decode the "choices" field from the poll table.
The importer checks the decoded data for the question entry and sets that accordingly:
Code:
Read more
Continue reading...
The importer checks the decoded data for the question entry and sets that accordingly:
Code:
Code:
$questions = json_decode($poll['choices'], true);
$question = $stepConfig['which_question'] == 'newest'
? end($questions)
: reset($questions);
/** @var \XF\Import\Data\Poll $import */
$import = $this->newHandler('XF:Poll')...
Read more
Continue reading...