Constants

QUIZ_ANSWER_VIEW_ALL

QUIZ_ANSWER_VIEW_ALL

quiz view filter

QUIZ_ANSWER_UNANSWERED

QUIZ_ANSWER_UNANSWERED

QUIZ_ANSWER_ANSWERED

QUIZ_ANSWER_ANSWERED

QUIZ_ANSWER_TEST

QUIZ_ANSWER_TEST

Properties

$uses

$uses : array

use model

Type

array

$components

$components : array

use components

Type

array

$helpers

$helpers : array

use helpers

Type

array

Methods

isAbleTo()

isAbleTo(array  $quiz) : boolean

isAbleTo Whether access to survey of the specified ID Forced URL hack guard And against the authority of the state of the specified questionnaire respondents put a guard It is not in the public state Out of period Stopped Repeatedly answer You are not logged in to not forgive other than member

Parameters

array $quiz

対象となる小テスト

Returns

boolean

isAbleToAnswer()

isAbleToAnswer(array  $quiz) : boolean

isAbleToAnswer 指定されたIDに回答できるかどうか 強制URLハックのガード 指定のアンケートの状態と回答者の権限を照らし合わせてガードをかける 公開状態にない 期間外 停止中 繰り返し回答 会員以外には許してないのに未ログインである

Parameters

array $quiz

対象となる小テスト

Returns

boolean

changeBooleansToNumbers()

changeBooleansToNumbers(array  $data) : array

changeBooleansToNumbers method to change the Boolean value of a given array to 0,1

Parameters

array $data

data array

Returns

array

converter()

converter(  $value, string  $key) : void

__converter method to change the Boolean value to 0,1

Parameters

$value
string $key

key

index()

index() : void

index method

add()

add() : void

add method

_sorted()

_sorted(array  $obj) : array

_sorted method to sort a given array by key

Parameters

array $obj

data array

Returns

array —

ソート後配列

_getQuizKeyFromPass()

_getQuizKeyFromPass() : string

_getQuizKeyFromPass

Returns

string

_getQuizEditSessionIndex()

_getQuizEditSessionIndex() : string

_getQuizEditSessionIndex

Returns

string

_getQuizKey()

_getQuizKey(array  $quiz) : string

_getQuizKey

Parameters

array $quiz

Quiz data

Returns

string

_getFilterSelectList()

_getFilterSelectList() : array

_getFilterSelectList method

Returns

array

_getPaginateFilter()

_getPaginateFilter() : array

_getPaginateFilter method

Returns

array

__setOwnAnsweredQuizKeys()

__setOwnAnsweredQuizKeys() : void

Set view value of answered quiz keys 閲覧者がすでに回答し終えている小テストのキーの配列を確保する

__setPassQuizKeys()

__setPassQuizKeys() : void

Set view value of passed quiz keys 閲覧者がすでに合格している小テストのキーの配列を確保する

__setNotScoringQuizKeys()

__setNotScoringQuizKeys() : void

Set view value of not scoring quiz keys 閲覧者が解答し終えていて、かつ、未採点である小テストのキーの配列を確保する