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

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Questionnaire_Model_Table_Answerslang

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 tranlations for asnwers

Parameters
NameTypeDescription
$qst_idinteger
$langsarray
methodpublicaddQuestionLangs(integer $question_id, \srray $langs, array $answerIds = array()) : void

add tranlationsfor questions

Parameters
NameTypeDescription
$question_idinteger
$langs\srray
$answerIdsarray
methodpubliccopy(integer $answer_id, integer $dst_question_id, integer $dst_answer_id, array $src_langs, array $dst_langs) : void

Copy answer tranlations

Parameters
NameTypeDescription
$answer_idinteger
$dst_question_idinteger
$dst_answer_idinteger
$src_langsarray
$dst_langsarray
methodpublicgetById(integer $answer_id, array $langs = array()) : array

Get answer tranlations by id

Parameters
NameTypeDescription
$answer_idinteger
$langsarray
Returns
TypeDescription
array
methodpublicgetByQstId(integer $qst_id, array $langs = array()) : array

Get answers tranations by questionnaire

Parameters
NameTypeDescription
$qst_idinteger
$langsarray
Returns
TypeDescription
array
methodpublicgetByQuestionId(integer $question_id, array $langs = array()) : array

Get answer translation by question id

Parameters
NameTypeDescription
$question_idinteger
$langsarray
Returns
TypeDescription
array
methodpublicinit() : void

methodpublicremoveLangs(integer $qst_id, \arrray $langs) : void

Remove tranlations from questions

Parameters
NameTypeDescription
$qst_idinteger
$langs\arrray
methodpublicupdateLang(integer $answer_id, string $lang, null $text = null, string $media = "undefined", null $dx = null, null $dy = null) : integer

Update answer tranlastion

Parameters
NameTypeDescription
$answer_idinteger
$langstring
$textnull
$mediastring
$dxnull
$dynull
Returns
TypeDescription
integer
methodpublicupdateLangExt( $answer_id,  $lang, array $source = array()) : void

Update answer ext

Parameters
NameTypeDescription
$answer_id
$lang
$sourcearray
Documentation was generated by phpDocumentor 2.8.5.