modules/questionnaire/models/Questionnaire.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Questionnaire_Model_Questionnaire

Package: Questionnaire\Models
Created by PhpStorm.

User: Evgeniy Date: 06.11.13 Time: 20:32

Properties

>VPropertyprivate$_db
Details
Type
n/a
>VPropertyprivate$qst_id
Details
Type
n/a

Methods

methodpublic__construct(integer $qst_id = 0) : void

Constructor

Parameters
NameTypeDescription
$qst_idinteger
methodprivate_allowRemoveLng(string $lng) : boolean

Check if it allowed to remove language from questionnaire

Parameters
NameTypeDescription
$lngstring
Returns
TypeDescription
boolean
methodpublicaddLangs(string $langs) : void

Add langs to questionnaire

Parameters
NameTypeDescription
$langsstring
methodpublicgetLangList() : array

Get all languages for this questionnaire

Returns
TypeDescription
array
methodpublicgetPaginator(integer $itemsOnPage, integer $cur_page) : object

Get paginator fot diplaying questions with pagination

Parameters
NameTypeDescription
$itemsOnPageinteger
$cur_pageinteger
Returns
TypeDescription
object
methodpublicgetProjects() : void

methodpublicgetQuestionTextTranslations(array $questions, string $lng) : object

AGet tranlations fo questions

Parameters
NameTypeDescription
$questionsarray
$lngstring
Returns
TypeDescription
object
methodpublicgetStructure() : array

Get full questionnaire struncture

Returns
TypeDescription
array
methodpublicremoveLangs(string $langs) : void

Remove langs from questionnanre

Parameters
NameTypeDescription
$langsstring
Documentation was generated by phpDocumentor 2.8.5.