modules/postcollection/models/Project.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Postcollection_Model_Project

Package: Postcollection\Models

Properties

>VPropertyprivate$db
Details
Type
n/a
>VPropertyprivate$dbNamePostcollection
Details
Type
n/a
>VPropertyprivate$dbNameProject
Details
Type
n/a
>VPropertyprivate$prId
Details
Type
n/a
>VPropertyprivate$qsId
Details
Type
n/a

Methods

methodpublic__construct(integer $projectId, integer $qsId) : void

Parameters
NameTypeDescription
$projectIdinteger
$qsIdinteger
methodpublicgetAnsweredCount(integer $questionId) : integer

Return count of answers given by respondents to this question

Parameters
NameTypeDescription
$questionIdinteger
Returns
TypeDescription
integer
methodpublicgetAnswers( $question_id) : array

return assoc array of answers, given by respondent

Parameters
NameTypeDescription
$question_id
Returns
TypeDescription
array
methodpublicgetAnswersAll() : \array[questionId]=cntAnswers

Return assoc array of answers, given by respondent indexed by questionId

Returns
TypeDescription
\array[questionId]=cntAnswers
methodpublicgetAnswersCountAll() : \array[questionId]=cnt

Return count of answered questions indexed by questionId

Returns
TypeDescription
\array[questionId]=cnt
methodpublicgetAnswersInfo( $answerIds) : array

To get information about respondent answers by passed list.

Parameters
NameTypeDescription
$answerIds

//array of answer Ids for get info

Returns
TypeDescription
array//indexed by $answer_id
methodpublicgetAnswersUser(integer $id) : void

Return assoc array of answer

Parameters
NameTypeDescription
$idinteger
methodpublicgetEmails() : array

Get all emails list

Returns
TypeDescription
array
methodpublicgetProjectList() : void

methodpublicgetQuestionInfo(integer $id) : \array[questionId]=cntAnswers

Return assoc array of answers, given by respondent indexed by questionId

Parameters
NameTypeDescription
$idinteger
Returns
TypeDescription
\array[questionId]=cntAnswers
Documentation was generated by phpDocumentor 2.8.5.