modules/questionnaire/models/Table/Question.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Questionnaire_Model_Table_Question

Package: Questionnaire\Models
Created by JetBrains PhpStorm.

User: Evgeniy Date: 06.09.13 Time: 11:28 To change this template use File | Settings | File Templates.

Parent(s)
\Scout_Db_Table

Properties

>VPropertyprotected$_name = "questions"
Default value"questions"Details
Type
n/a

Methods

methodpublicgetById( $question_id) : mixed

Get queston by id

Parameters
NameTypeDescription
$question_id
Returns
TypeDescription
mixed
methodpublicgetId2Num(integer $qst_id) : integer

Convert querion id to quetiuon number

Parameters
NameTypeDescription
$qst_idinteger
Returns
TypeDescription
integer
methodpublicgetQstId(integer $question_id = 0) : integer

Get questionnaire for questios by id

Parameters
NameTypeDescription
$question_idinteger
Returns
TypeDescription
integer
methodpublicgetQstStructure(integer $qst_id) : array

Get strured all question for questionnaire

Parameters
NameTypeDescription
$qst_idinteger
Returns
TypeDescription
array
methodpublicgetQuestionForPreview(integer $question_id) : mixed

Get queetsions data with types gor preview

Parameters
NameTypeDescription
$question_idinteger
Returns
TypeDescription
mixed
methodpublicinit() : \[type]

Init model

Returns
TypeDescription
\[type][description]
Documentation was generated by phpDocumentor 2.8.5.