modules/postcollection/models/Proof.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Postcollection_Model_Proof

Package: Postcollection\Models

Properties

>VPropertyprivate$db
Details
Type
n/a
>VPropertyprivate$dbName = "scout_postcollection"
Default value"scout_postcollection"Details
Type
n/a
>VPropertypublic$prId
Details
Type
n/a
>VPropertypublic$qsId
Details
Type
n/a
>VPropertyprivate$schema = "scout_postcollection"
Default value"scout_postcollection"Details
Type
n/a
>VPropertyprivate$schema_project = "scout_project"
Default value"scout_project"Details
Type
n/a

Methods

methodpublic__construct( $prId, integer $qsId = 0) : void

Parameters
NameTypeDescription
$prId
$qsIdinteger
methodpublicclearAllProofing() : void

Delete all records related to this project from Proofing table

methodpublicclearProofing(integer $quest_id) : void

Clear proofreadingby question

Parameters
NameTypeDescription
$quest_idinteger
methodpublicgetNewtext(integer $q_id) : array

Get new text by questionnaire

Parameters
NameTypeDescription
$q_idinteger

[description]

Returns
TypeDescription
array
methodpublicgetNewtextForAncode(integer $q_id, integer $question_id, integer $ans_id, integer $act_id) : array

Get new text for encoded

Parameters
NameTypeDescription
$q_idinteger
$question_idinteger
$ans_idinteger
$act_idinteger
Returns
TypeDescription
array
methodpublicgetProofedAnswers() : array

Return array of all actions/questions numbers with proofinig. Important! By Question Numbers!

Returns
TypeDescription
array
methodpublicgetProofing( $act_id) : void

Parameters
NameTypeDescription
$act_id
methodpublicgetQuestions(boolean $date = false) : array

Get questions by date

Parameters
NameTypeDescription
$dateboolean
Returns
TypeDescription
array
methodpublicgetSurveys(integer $project_id, string $dateStart = '', \date $dateEnd = '') : mixed

Gat list of surveys by project

Parameters
NameTypeDescription
$project_idinteger
$dateStartstring
$dateEnd\date
Returns
TypeDescription
mixed
methodpublicsaveProofing(integer $qs_id, integer $quest_id, integer $ans_id, string $ans_text, integer $act_id) : boolean

Save proofreading data

Parameters
NameTypeDescription
$qs_idinteger
$quest_idinteger
$ans_idinteger
$ans_textstring
$act_idinteger
Returns
TypeDescription
boolean
methodpublicupdateProofing(\[type] $qs_id, \[type] $open_text, \[type] $quest_id, \[type] $ans_id) : \[type]

Update proofreading

Parameters
NameTypeDescription
$qs_id\[type]

[description]

$open_text\[type]

[description]

$quest_id\[type]

[description]

$ans_id\[type]

[description]

Returns
TypeDescription
\[type][description]
Documentation was generated by phpDocumentor 2.8.5.