modules/supervision/models/Interviewer.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Supervision_Model_Interviewer

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

Properties

>VPropertyprivate$_db
db instance
Details
Type
n/a
>VPropertyprivateinteger $_projId = 0
Projtc id
Default value0Details
Type
integer
>VPropertyprotected$_schema
Details
Type
n/a

Methods

methodpublic__construct( $projId = "") : void

Parameters
NameTypeDescription
$projId
methodpubliccurrentActionsMessages(\[type] $projectId, \[type] $interviewerId) : \[type]

[currentActionsMessages description]

Parameters
NameTypeDescription
$projectId\[type]

[description]

$interviewerId\[type]

[description]

Returns
TypeDescription
\[type][description]
methodpublicgetInterviewersAll(integer $groupId = 0) : array

Get all interviewers list

Parameters
NameTypeDescription
$groupIdinteger
Returns
TypeDescription
array
methodpublicgetInterviewersAllDetailed() : array

Get all interviewes with detailed information

Returns
TypeDescription
array
methodpublicgetInterviewersByProject() : array

Get all interviewers allocated to current project

Returns
TypeDescription
array
methodpublicgetInterviewersByProjectId(integer $id) : array

Get all interviewers allocated to some project

Parameters
NameTypeDescription
$idinteger
Returns
TypeDescription
array
methodpublicgetInterviewersFree(integer $groupId = 0) : array

Get inteviewers than not allocated to any project

Parameters
NameTypeDescription
$groupIdinteger
Returns
TypeDescription
array
methodpublicgetInterviewersMap(null $projectId = null, null $state = null) : array

List of interviewers who not OFFLINE now

Parameters
NameTypeDescription
$projectIdnull
$statenull
Returns
TypeDescription
array
Throws
ExceptionDescription
\Zend_Exception
methodpublicinterviewerAllocation(array $interviewerIDs) : void

Add interviewers to allocated fot current project

Parameters
NameTypeDescription
$interviewerIDsarray
methodpublicinterviewerRelease(array $interviewerIDs) : void

Remove interviewerf from current project allocation

Parameters
NameTypeDescription
$interviewerIDsarray
methodpublicinterviewerReleaseAll() : void

Release all interviewers from current project

methodpublicinterviewersLogOut(array $interviewerIDs) : void

Kick interviewers to offline

Parameters
NameTypeDescription
$interviewerIDsarray
methodpublicsendMessages( $projectId,  $senderId,  $interviewerId,  $text) : void

Parameters
NameTypeDescription
$projectId
$senderId
$interviewerId
$text
Documentation was generated by phpDocumentor 2.8.5.