ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,708
- Points
- 823
Reputation:
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...