models/UserLogs.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\UserLogs

Package: Models
User logs

Constants

>VConstant  USER_LOGOUT = 0
>VConstant  USER_LOGIN = 1
>VConstant  INTERMISSION_FROM = 2
>VConstant  INTERMISSION_BREAK = 3
>VConstant  INTERMISSION_TASK = 4
>VConstant  PROJECT_LOGIN = 5
>VConstant  SURVEY_START = 6
>VConstant  SURVEY_SUCCESS = 7
>VConstant  SURVEY_EXIT = 8
>VConstant  SURVEY_OVERQUOTA = 9
>VConstant  SURVEY_ZEROQUOTA = 10

Properties

>VPropertyprivatestring $_name = 'user_log'
table name
Default value'user_log'Details
Type
string
>VPropertyprivatestring $_schema
db name
Details
Type
string
>VPropertyprivate\Zend_Db_Table $db
db instance
Details
Type
\Zend_Db_Table
>VPropertyprivateinteger $userId
User id
Details
Type
integer

Methods

methodpublic__construct(integer $user_id = 0) : void

Constructor

Parameters
NameTypeDescription
$user_idinteger

User id

methodprivate_checkFix( $action) : void

Parameters
NameTypeDescription
$action
methodprivate_surveyManage(string $action, integer $projectId, integer $surveyId, integer $phoneLogId = 0) : void

Log survey manage

Parameters
NameTypeDescription
$actionstring
$projectIdinteger
$surveyIdinteger
$phoneLogIdinteger
methodpublicexitSurvey(integer $projectId, integer $surveyId, integer $phoneLogId = 0, boolean $forceCheck = true) : void

Log survey exit

Parameters
NameTypeDescription
$projectIdinteger
$surveyIdinteger
$phoneLogIdinteger
$forceCheckboolean
methodpublicgetFirstLogoutAfter(integer $logId) : void

Get first logout

Parameters
NameTypeDescription
$logIdinteger
methodpublicgetIntermissionStatus() : void

Get status of intermission

methodpublicgetInterviewersIDInProject(integer $projectId = 0, array $dates = array()) : array

List of interviewers ID who login in in project during date interval

Parameters
NameTypeDescription
$projectIdinteger
$datesarray
Returns
TypeDescription
array
methodpublicgetLastStatus() : void

Get last status

methodpublicgetLastStatusInProject(integer $projectId) : void

Get last status in project

Parameters
NameTypeDescription
$projectIdinteger
methodpublicgetTableName(string $action = "", integer $projectId = 0) : array

Get table name

Parameters
NameTypeDescription
$actionstring
$projectIdinteger
Returns
TypeDescription
array
methodpublicintermission(string $intermission,  $projectId, integer $reason = 0, boolean $forceCheck = true) : void

intermission == [INTERMISSION_FROM | INTERMISSION_BREAK |INTERMISSION_TASK]

Parameters
NameTypeDescription
$intermissionstring
$projectId
$reasoninteger
$forceCheckboolean
methodpubliclogin(integer $reason = 0, boolean $forceCheck = true) : void

Login action logs

Parameters
NameTypeDescription
$reasoninteger
$forceCheckboolean
methodpubliclogout( $reason = 0,  $forceCheck = true,  $user_id = 0) : void

Parameters
NameTypeDescription
$reason
$forceCheck
$user_id
methodpubliclogoutBatch(array $aUserIds = array(), integer $reason = 0, boolean $forceCheck = true) : void

Make logoin many users at once

Parameters
NameTypeDescription
$aUserIdsarray

Id of users

$reasoninteger

Reason of logout

$forceCheckboolean
methodpublicoverquotaSurvey(integer $projectId, integer $surveyId, integer $phoneLogId = 0, boolean $forceCheck = true) : void

Log survey over quota

Parameters
NameTypeDescription
$projectIdinteger
$surveyIdinteger
$phoneLogIdinteger
$forceCheckboolean
methodpublicprojectLogin( $projectId,  $forceCheck = true) : void

Parameters
NameTypeDescription
$projectId
$forceCheck
methodpublicstartSurvey(integer $projectId, integer $surveyId, integer $phoneLogId = 0, boolean $forceCheck = true) : void

Log start survey

Parameters
NameTypeDescription
$projectIdinteger
$surveyIdinteger
$phoneLogIdinteger
$forceCheckboolean
methodpublicsuccessSurvey(integer $projectId, integer $surveyId, integer $phoneLogId = 0, boolean $forceCheck = true) : void

Log start survey

Parameters
NameTypeDescription
$projectIdinteger
$surveyIdinteger
$phoneLogIdinteger
$forceCheckboolean
methodpubliczeroquotaSurvey(integer $projectId, integer $surveyId, integer $phoneLogId = 0, boolean $forceCheck = true) : void

Log survey zero quota

Parameters
NameTypeDescription
$projectIdinteger
$surveyIdinteger
$phoneLogIdinteger
$forceCheckboolean
Documentation was generated by phpDocumentor 2.8.5.