CRM V2

WPCrmAnswer
in package

Class de gestion de la segmentation question avec Wordpress

Tags
category

API

subpackage

Wordpress

author

Jérémy Munsch jeremy.munsch@ldc.fr

license

MIT https://opensource.org/licenses/MIT

link
/

Table of Contents

setQuestionAnswers()  : bool
Set answers to a question for a specific user

Methods

setQuestionAnswers()

Set answers to a question for a specific user

public setQuestionAnswers(WPCrmUser $user, int $questionId, array<string|int, mixed> $answersId) : bool
Parameters
$user : WPCrmUser
$questionId : int

The question id .

$answersId : array<string|int, mixed>

An array with answers id .

Tags
throws
CrmException

If an error occurs on server side or on getting response.

throws
ValidationException

If $user hashcode is not a valid UUID.

throws
ValidationException

If any of the provided ids are invalid.

throws
ApiErrorException

If any error \LDC\LDCCRM\Enums\ApiError occurs. Possibles are : - validationFailed, If given ids are wrong(CRM side).

phpcs:ignore

Squiz.Commenting.FunctionCommentThrowTag.WrongNumber

Return values
bool —

true if succeeded

Search results