modules/survey/models/Interview.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Survey_Model_Interview

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

Properties

>VPropertyprivate$db
Details
Type
n/a
>VPropertyprivate$mainDbName
Details
Type
n/a
>VPropertyprivate$oProject
Details
Type
n/a
>VPropertyprivate$projDbName
Details
Type
n/a
>VPropertyprivate$projId
Details
Type
n/a

Methods

methodpublic__construct(integer $projId = 0, boolean $bNoLoadProjectData = false) : void

Contructor

Parameters
NameTypeDescription
$projIdinteger
$bNoLoadProjectDataboolean
methodpubliccalculateRespondentStatuses(integer $interviewerId) : array

Get repondent statuses

Parameters
NameTypeDescription
$interviewerIdinteger
Returns
TypeDescription
array
methodpubliccallPhone(integer $interviewerId, integer $phoneId) : array

Proccess phone

Parameters
NameTypeDescription
$interviewerIdinteger
$phoneIdinteger
Returns
TypeDescription
array
methodpubliccheckCompletePhoneStatus(integer $interviewerId, integer $phoneId) : array

Check if complete statuses fot phone

Parameters
NameTypeDescription
$interviewerIdinteger
$phoneIdinteger
Returns
TypeDescription
array
methodpubliccheckCompleteRespondentStatus(integer $interviewerId, integer $sfId) : array

Check if complete statuses for repondent

Parameters
NameTypeDescription
$interviewerIdinteger
$sfIdinteger
Returns
TypeDescription
array
methodprivatecheckRespondentCQuotas(array $data) : integer

Check quotas for current repondent

Parameters
NameTypeDescription
$dataarray
Returns
TypeDescription
integer
methodpublicdeleteComment(integer $commentId) : void

delete commetn

Parameters
NameTypeDescription
$commentIdinteger
methodprivategetByPolicyOrder( $currentRespondentId,  $respondentStatuses,  $policyOrder) : array

Sort the list of respondents by policy order

Parameters
NameTypeDescription
$currentRespondentId
$respondentStatuses
$policyOrder
Returns
TypeDescription
array
methodpublicgetComments(integer $respondentId) : array

Get comment to sheo for interviever

Parameters
NameTypeDescription
$respondentIdinteger
Returns
TypeDescription
array
methodpublicgetGeneralInfo() : array

Get base info about current project

Returns
TypeDescription
array
methodpublicgetMessages(integer $interviewer_id) : array

Get mesages

Parameters
NameTypeDescription
$interviewer_idinteger
Returns
TypeDescription
array
methodpublicgetNextRespondentId(integer $interviewerId, integer $currentRespId = 0) : array

Get id of next repondent

Parameters
NameTypeDescription
$interviewerIdinteger
$currentRespIdinteger
Returns
TypeDescription
array
methodpublicgetPersonalInfo(integer $interviewer_id) : array

Get personal info abount inteviewer

Parameters
NameTypeDescription
$interviewer_idinteger
Returns
TypeDescription
array
methodpublicgetPhones( $sfId) : array

1 - Failed, 2 - INUSE, 3 - SUCCESS, 4 - EMPTY

Parameters
NameTypeDescription
$sfId
Returns
TypeDescription
array
methodpublicgetProjects( $interviewerId) : void

Parameters
NameTypeDescription
$interviewerId
methodpublicgetQuotasNews() : array

Get new for interviewer

Returns
TypeDescription
array
methodpublicgetRespondentInfo(integer $sfId) : array

Get all info abount respondent

Parameters
NameTypeDescription
$sfIdinteger
Returns
TypeDescription
array
methodpublicgetUsersList() : void

methodpublicintermission(integer $interviewerId, integer $toIntemission, integer $reason = 0) : void

Set intervieve to intermission

Parameters
NameTypeDescription
$interviewerIdinteger
$toIntemissioninteger
$reasoninteger
methodpublicsaveComment(integer $commentId, integer $meId, integer $respondentId, string $comment) : void

Save comment about respondent

Parameters
NameTypeDescription
$commentIdinteger
$meIdinteger
$respondentIdinteger
$commentstring
methodprivateserachInUseRespondent(integer $interviewerId) : mixed

Search for all respondents thas in status = use

Parameters
NameTypeDescription
$interviewerIdinteger
Returns
TypeDescription
mixed
methodpublicsetPhoneStatus(integer $interviewerId, integer $phoneId, integer $statusId, integer $nextDt, string $nextLng) : void

Set repondent phone status

Parameters
NameTypeDescription
$interviewerIdinteger
$phoneIdinteger
$statusIdinteger
$nextDtinteger
$nextLngstring
Documentation was generated by phpDocumentor 2.8.5.