\QuizBlocksController

BlocksController

Add your application-wide methods in the class below, your controllers will inherit them.

Summary

Methods
Properties
Constants
isAbleTo()
isAbleToAnswer()
changeBooleansToNumbers()
converter()
beforeFilter()
index()
download()
export()
$uses
$components
$layout
$helpers
QUIZ_CSV_UNIT_NUMBER
_sorted()
_getQuizKeyFromPass()
_getQuizEditSessionIndex()
_getQuizKey()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

QUIZ_CSV_UNIT_NUMBER

QUIZ_CSV_UNIT_NUMBER

csv download item count handling unit

Properties

$uses

$uses : array

use models

Type

array

$components

$components : array

use components

Type

array

$layout

$layout : array

layout

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

beforeFilter()

beforeFilter() : void

beforeFilter

index()

index() : void

index

download()

download() : void

download

Throws

\InternalErrorException

export()

export() : void

export

template file about questionnaire export action

_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