modules/supervision/models/Project.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Supervision_Model_Project

Package: Supervision\Models
Supervision_Model_Project
Access
public  
Author
Evgeniy  
Version
$Id$  

Properties

>VPropertyprivate$db
db instance
Details
Type
n/a
>VPropertyprivateobject $me
current user
Details
Type
object
>VPropertyprivatestring $projDbName
projecct db name
Details
Type
string
>VPropertyprivateinteger $projId = 0
project id
Default value0Details
Type
integer

Methods

methodpublic__construct(integer $projId = "") : void

Contructor

Parameters
NameTypeDescription
$projIdinteger
methodpubliccalculatMinRespondentsStatuses() : array

Calculate statuses for repondents

Returns
TypeDescription
array
methodpublicgetAbonentsByStatus(integer $statusId) : array

Get abonents by somestatus

Parameters
NameTypeDescription
$statusIdinteger
Returns
TypeDescription
array
methodpublicgetDailyPerInterviewer(integer $date) : array

Get daily report for interviewer

Parameters
NameTypeDescription
$dateinteger
Returns
TypeDescription
array
methodpublicgetDailyProduction(integer $date) : array

Get daily report production data

Parameters
NameTypeDescription
$dateinteger
Returns
TypeDescription
array
methodpublicgetDailyStatuses(integer $date) : array

Get statistic by daily statuses

Parameters
NameTypeDescription
$dateinteger
Returns
TypeDescription
array
methodpublicgetPhonesStatuses() : void

Calculate statuses by hierarchy for all prnes in project CATI ONLY!

methodpublicgetPhonesStatusesCnt() : array

Calculate count of prones with each status in project

Returns
TypeDescription
array
methodpublicgetProjInfo() : object

Get base information about project

Returns
TypeDescription
object
methodpublicgetQuestionFreq(integer $question_id, string $lang = "", string $freqExportType = "all") : array

Get question grequency

Parameters
NameTypeDescription
$question_idinteger
$langstring
$freqExportTypestring
Returns
TypeDescription
array
methodpublicgetRespondentStatusesCnt() : array

Cet cotoal count of repondent statuses

Returns
TypeDescription
array
methodpublicgetResponseStatusesByCQuotas() : void

Get statuses fo respondents by C quotas

methodpublicgetResponseStatusesByGeneral() : void

Get statuses for respondents by general type

methodpublicgetResponseStatusesByInterviewer() : void

Get statuses by interviewers

methodpublicrestoreStatuses(array $aIds) : void

Restore statuses from log

Parameters
NameTypeDescription
$aIdsarray
Documentation was generated by phpDocumentor 2.8.5.