modules/postcollection/models/Question.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Postcollection_Model_Question

Package: Postcollection\Models

Properties

>VPropertypublic$Id2Num = array()
Default valuearray()Details
Type
n/a
>VPropertypublic$MULTI_ANSWER_CHECK = 8
static
Default value8Details
Type
n/a
>VPropertypublic$Num2Id = array()
Default valuearray()Details
Type
n/a
>VPropertypublic$OPEN_ANY_TEXT = 14
static
Default value14Details
Type
n/a
>VPropertypublic$OPEN_DATE = 16
static
Default value16Details
Type
n/a
>VPropertypublic$OPEN_NUMBER = 15
static
Default value15Details
Type
n/a
>VPropertypublic$OPEN_TIME = 17
static
Default value17Details
Type
n/a
>VPropertypublic$SINGLE_PICK_RADIO = 7
static
Default value7Details
Type
n/a
>VPropertypublic$encodingQuestions = array(7, 8, 14, 15, 16, 17, 29, 30)
static
Default valuearray(7, 8, 14, 15, 16, 17, 29, 30)Details
Type
n/a
>VPropertypublic$mixQuestions = array(7, 8)
static
Default valuearray(7, 8)Details
Type
n/a
>VPropertypublic$openQuestions = array(14, 15, 16, 17, 29, 30)
static
Default valuearray(14, 15, 16, 17, 29, 30)Details
Type
n/a
>VPropertypublic$prId
Details
Type
n/a
>VPropertypublic$qsId
Details
Type
n/a
>VPropertypublic$questionId
Details
Type
n/a
>VPropertypublic$questionNum
Details
Type
n/a

Methods

methodpublic__construct( $prId,  $question_id = false) : void

Parameters
NameTypeDescription
$prId
$question_id
methodprivatecreateTarnslateTables() : void

Create tables translation tables t[q_num]=q_id and t2[q_id]=q_num

methodpublicgetAll() : array

Get all questions

Returns
TypeDescription
array
methodpublicgetCountAnswers() : void

methodprivategetMainQuestionery(integer $prId) : integer

Get main questionnaire

Parameters
NameTypeDescription
$prIdinteger
Returns
TypeDescription
integer
methodpublicgetQuestionMix() : array

ONLY for Encoding module!! To create list of category for Closed and Mix questions!

Returns
TypeDescription
array
methodpublicgetQuestionMixMax() : array

Get question min and max position

Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.8.5.