WPCrmQuestion
in package
Class de gestion de la segmentation question avec Wordpress (ce truc immonde)
Tags
Table of Contents
- allWithCustomerAnswers() : array<string|int, mixed>
- Get all the questions with user answers
- getAll() : array<string|int, mixed>
- Get all questions only
- unansweredBy() : array<string|int, Question>
- Get unanswered question for a specific customer
- getRawProperty() : mixed
- Get a property
Methods
allWithCustomerAnswers()
Get all the questions with user answers
public
static allWithCustomerAnswers(WPCrmUser $user) : array<string|int, mixed>
Parameters
- $user : WPCrmUser
Tags
Return values
array<string|int, mixed> —[ 0 => [ 'question' => \LDC\LDCCRM\Models\Question, 'customerAnswers' => \LDC\LDCCRM\Models\Answer[] ] ]
with \LDC\LDCCRM\Models\Question[] and the customer \LDC\LDCCRM\Models\Answer[]
getAll()
Get all questions only
public
static getAll() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —with \LDC\LDCCRM\Models\Question[]
unansweredBy()
Get unanswered question for a specific customer
public
static unansweredBy(WPCrmUser $user) : array<string|int, Question>
Parameters
- $user : WPCrmUser
Tags
Return values
array<string|int, Question> —getRawProperty()
Get a property
protected
static getRawProperty(object $object, string $field) : mixed
Parameters
- $object : object
- $field : string