modules/survey/models/Phones.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Survey_Model_Phones

Package: Survey\Models
Phones 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( $projId = 0) : void

Parameters
NameTypeDescription
$projId
methodpublicgetBySfId( $sfId, integer $interviewerId = 0, string $status = "") : integer

Return _phone.id by params. Any of belong to abonent or (af added $interviewerId) then any of owned to abonent and was in work in interviewer or if exist $status any of belonged abonents to thus interviewer with this status

Parameters
NameTypeDescription
$sfId
$interviewerIdinteger
$statusstring
Returns
TypeDescription
integer
methodpublicgetLastStatusesByLog(integer $sfId) : array

Get last phones statusby log

Parameters
NameTypeDescription
$sfIdinteger
Returns
TypeDescription
array
methodpublicgetPhoneStatuseByLog(integer $interviewerId, integer $phoneId) : array

Get phone status by log

Parameters
NameTypeDescription
$interviewerIdinteger
$phoneIdinteger
Returns
TypeDescription
array
methodpublicgetPhoneStatusesByLog( $phoneId) : array

Return all phone statuses by desc order. Could be userfull when check which phone status was before RETURNED

Parameters
NameTypeDescription
$phoneId
Returns
TypeDescription
array
methodpublicgetPhoneStatusesBySfId(integer $interviewerId, integer $sfId) : array

Get phone statuses by simple file id

Parameters
NameTypeDescription
$interviewerIdinteger
$sfIdinteger
Returns
TypeDescription
array
methodpublicupdateStatuses( $interviewerId) : void

Recount statusesfor phones for current moment. Before recount lock table phone and logs.

Need to work very fast!!!

Parameters
NameTypeDescription
$interviewerId
Documentation was generated by phpDocumentor 2.8.5.