CRM V2

WPCrmAnswer
in package

Class de gestion de la segmentation question avec Wordpress (ce truc immonde)

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 unanswered question for a specific customer
getRawProperty()  : mixed
Get a property

Methods

setQuestionAnswers()

Set unanswered question for a specific customer

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
ApiErrorException

If any error or \LDC\LDCCRM\Enums\ApiError occurs

Return values
bool —

true if succeeded

getRawProperty()

Get a property

protected static getRawProperty(object $object, string $field) : mixed
Parameters
$object : object
$field : string
Return values
mixed —

Search results