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

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Questionnaire_Model_Table_Questionslang

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

Methods

methodpublicaddLangs(integer $qst_id, array $langs) : void

Add languages to qutions by questionnaire

Parameters
NameTypeDescription
$qst_idinteger
$langsarray
methodpublicaddQuestionLangs(integer $question_id, array $langs) : void

Add languages for quesiton by quetion id

Parameters
NameTypeDescription
$question_idinteger
$langsarray
methodpubliccopy(integer $question_Id, integer $dst_qst_id, integer $dst_question_id, array $src_langs, array $dst_langs) : void

Copy question translation to another question

Parameters
NameTypeDescription
$question_Idinteger
$dst_qst_idinteger
$dst_question_idinteger
$src_langsarray
$dst_langsarray
methodpublicgetById(integer $question_id, array $langs = null) : mixed

Get translations by quetion id

Parameters
NameTypeDescription
$question_idinteger
$langsarray
Returns
TypeDescription
mixed
methodpublicgetByIds( $question_ids = array(), array $langs = array()) : mixed

Get translations by many quetion ids

Parameters
NameTypeDescription
$question_ids
$langsarray
Returns
TypeDescription
mixed
methodpublicgetByQstId(array $qst_id, array $langs = array()) : mixed

Get translations by questionnaire

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

Init model

Returns
TypeDescription
\[type][description]
methodpublicremoveLangs(integer $qst_id, array $langs) : void

Remove laguages from question

Parameters
NameTypeDescription
$qst_idinteger
$langsarray
methodpublicupdateLang(integer $question_id, string $lang, array $data) : void

Update question tranlation

Parameters
NameTypeDescription
$question_idinteger
$langstring
$dataarray
Documentation was generated by phpDocumentor 2.8.5.