LimeSurvey API - Master branch

ProxyQuestion
in package

ProxyQuestion Service

Wraps static methods on Question to make them injectable to other services.

Table of Contents

Methods

getHighestQuestionOrderNumberInGroup()  : int|null
Returns the highest question_order value that exists for a questiongroup inside the related questions.
getMaxQuestionOrder()  : int
Queries the database for the maximum sort order of questions inside question group.

Methods

getHighestQuestionOrderNumberInGroup()

Returns the highest question_order value that exists for a questiongroup inside the related questions.

public static getHighestQuestionOrderNumberInGroup(int $questionGroupId) : int|null

($question->question_order).

Parameters
$questionGroupId : int

the question group id

Return values
int|null

question highest order number or null if there are no questions belonging to the group

getMaxQuestionOrder()

Queries the database for the maximum sort order of questions inside question group.

public static getMaxQuestionOrder(int $gid) : int
Parameters
$gid : int
Return values
int

        
On this page

Search results