modules/supervision/models/Production.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Supervision_Model_Production

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

Properties

>VPropertyprivatearray $avgColumns = array()
averege colums data
Default valuearray()Details
Type
array
>VPropertyprivatearray $columns = array()
data colums
Default valuearray()Details
Type
array
>VPropertyprivatearray $columnsMap = array()
data colums map
Default valuearray()Details
Type
array
>VPropertyprivate\[type] $db
db instnce
Details
Type
\[type]
>VPropertyprivateinteger $goal
production goal
Details
Type
integer
>VPropertyprivatestring $mainDbName
main scout db name
Details
Type
string
>VPropertyprivate$numericColumns = array()
Default valuearray()Details
Type
n/a
>VPropertyprivatestring $projDbName
Project db name
Details
Type
string
>VPropertyprivateinteger $projId = 0
Project id
Default value0Details
Type
integer
>VPropertypublic$sNumericColumns = array(2, 3, 4, 5, 6, 7)
static
Default valuearray(2, 3, 4, 5, 6, 7)Details
Type
n/a
>VPropertypublic$sTimeColumns = array(12, 15, 16, 19, 20, 21, 25, 26)
static
Default valuearray(12, 15, 16, 19, 20, 21, 25, 26)Details
Type
n/a
>VPropertyprivatearray $sumColumns = array()
totla sum columns
Default valuearray()Details
Type
array
>VPropertyprivateinteger $tblLog
table pones name
Details
Type
integer
>VPropertyprivateinteger $tblPhones
table phones name
Details
Type
integer
>VPropertyprivateinteger $tblUserLog
Table log name
Details
Type
integer
>VPropertyprivate$timeColumns = array()
Default valuearray()Details
Type
n/a
>VPropertyprivateinteger $userId = 0
curernt user id
Default value0Details
Type
integer

Methods

methodpublic__construct(string $projId = "") : void

Contructor

Parameters
NameTypeDescription
$projIdstring
methodpublic_prepareInterviewtemporaryTable(integer $selectedDate) : string

Prepare teporary date and teatingtable

Parameters
NameTypeDescription
$selectedDateinteger
Returns
TypeDescription
string
methodpubliccalculateProductionValues(\ineger $goal, integer $selectedDt) : array

Userd from Survey module for get presonal data in survey

Parameters
NameTypeDescription
$goal\ineger
$selectedDtinteger
Returns
TypeDescription
array
methodprivatefilterColumnsByMap(array $columns) : void

Filter columms by map data colums

Parameters
NameTypeDescription
$columnsarray
Details
Retun
array  
methodpublicgetAverages(\[type] $data, \[type] $goal) : \[type]

[getAverages description]

Parameters
NameTypeDescription
$data\[type]

[description]

$goal\[type]

[description]

Returns
TypeDescription
\[type][description]
methodpublicgetBreakTimes(integer $selectedDt, integer $projectId = 0) : array

Get time tha interviewers was in intermission

Parameters
NameTypeDescription
$selectedDtinteger
$projectIdinteger
Returns
TypeDescription
array
methodpublicgetColumnsListExt() : array
static

Get external colums strucure

Returns
TypeDescription
array
methodpublicgetColumnsMap() : string

Get mapped colums jsin

Returns
TypeDescription
string
methodprivategetCompleteCounts(integer $selectedDt) : array

Get completed interviews count for some date

Parameters
NameTypeDescription
$selectedDtinteger
Returns
TypeDescription
array
methodpublicgetFullColumnsList() : array

Get full colums list data

Returns
TypeDescription
array
methodpublicgetGoal() : float

get goals for project

Returns
TypeDescription
float
methodpublicgetProjectActifityDates() : void

Get project actived dates

methodpublicgetProjectInfo( $date = 0) : array

Return data of first action with project and llast action date

Parameters
NameTypeDescription
$date
Returns
TypeDescription
array
methodpublicgetSpecificColumns() : \[type]

get data for specifi columns

Returns
TypeDescription
\[type][description]
methodpublicgetTableData(integer $selectedDt = 0, boolean | false $bAllColumns = false) : array

get base table data for produnctions

Parameters
NameTypeDescription
$selectedDtinteger
$bAllColumnsboolean | false
Returns
TypeDescription
array
methodpublicgetTimes(string $tmpTable, integer $selectedDt) : array

get titem for interviewers from temp table

Parameters
NameTypeDescription
$tmpTablestring
$selectedDtinteger
Returns
TypeDescription
array
methodpublicgetUsersIdList(array $data) : array

Used from survey module for get presonal data ids in surevey

Parameters
NameTypeDescription
$dataarray
Returns
TypeDescription
array
methodpublicinitColumns() : mixed

Init colums by data

Returns
TypeDescription
mixed
methodpublicsaveColumnsMap(integer $userId, string $json) : void

Save columms map fro production

Parameters
NameTypeDescription
$userIdinteger
$jsonstring
methodpublicsetGoal(integer $userId, integer $goal) : void

Set goals for current project

Parameters
NameTypeDescription
$userIdinteger
$goalinteger
methodpublicsetProjectId(integer $projId) : void

Set curent project id

Parameters
NameTypeDescription
$projIdinteger
Documentation was generated by phpDocumentor 2.8.5.