modules/survey/models/Survey.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Survey_Model_Survey

Package: Survey\Models
Survey model
Access
public  
Author
Evgeniy  
Version
$Id$  

Properties

>VPropertyprivate\intefer $delta
it step forward or backward
Details
Type
\intefer
>VPropertyprivate$surveyStorage
Details
Type
n/a

Methods

methodpublic__construct( $surveyStorage = false) : void

Parameters
NameTypeDescription
$surveyStorage
methodpublicaction_cond(object $cond_parsed, string $con_type) : void

Process seome condidion

Parameters
NameTypeDescription
$cond_parsedobject
$con_typestring
methodprivatecheck_cond(mixed $cond) : boolean

Checking conditions

Parameters
NameTypeDescription
$condmixed
Returns
TypeDescription
boolean
methodpublicgetStartButtons(array $lngCodes) : array

Get buttons on all languages for start survee

Parameters
NameTypeDescription
$lngCodesarray
Returns
TypeDescription
array
methodpublicget_by_id(\unteger $id) : array

get question from all cached questions by id

Parameters
NameTypeDescription
$id\unteger
Returns
TypeDescription
array
methodpublicget_by_pos(integer $pos) : array

Get question by postion

Parameters
NameTypeDescription
$posinteger
Returns
TypeDescription
array
methodpublicget_by_step(integer $step = 1) : array | boolean | \stdClass

Get question by number

Parameters
NameTypeDescription
$stepinteger
Returns
TypeDescription
array | boolean | \stdClass
methodpublicmake_split( $random_split,  $questions) : void

Parameters
NameTypeDescription
$random_split
$questions
methodpublicprint_replace(mixed $print_text, mixed $answers) : mixed

Replace placeholder to answers data

Parameters
NameTypeDescription
$print_textmixed
$answersmixed
Returns
TypeDescription
mixed
methodpublicprint_text(mixed $question, mixed $answers) : mixed

Printing question and answers

Parameters
NameTypeDescription
$questionmixed
$answersmixed
Returns
TypeDescription
mixed
methodpublicrand_ans(mixed $questions,  $only_media = false) : array | mixed

Random for canswers

Parameters
NameTypeDescription
$questionsmixed
$only_media
Returns
TypeDescription
array | mixed
methodpublicrand_child(mixed $questions) : array | mixed

Random for children questions

Parameters
NameTypeDescription
$questionsmixed
Returns
TypeDescription
array | mixed
methodpublicrand_split(mixed $questions, mixed $type) : array | mixed

Do random split

Parameters
NameTypeDescription
$questionsmixed
$typemixed
Returns
TypeDescription
array | mixed
methodpublicsetDelta(integer $delta) : void

Set delta

Parameters
NameTypeDescription
$deltainteger
Documentation was generated by phpDocumentor 2.8.5.