modules/postcollection/models/Merge.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Postcollection_Model_Merge

Package: Postcollection\Models

Properties

>VPropertyprivate$db
Details
Type
n/a
>VPropertyprivate$dbName
Details
Type
n/a
>VPropertyprivate$prId
Details
Type
n/a
>VPropertyprivate$qsId
Details
Type
n/a

Methods

methodpublic__construct( $projectId,  $qsId) : void

Parameters
NameTypeDescription
$projectId
$qsId
methodpublicadd(integer $mergeId, integer $ids) : void

Add questions to merge group

Parameters
NameTypeDescription
$mergeIdinteger

projectId

$idsinteger

qsId

methodpublicclear(integer $mergeId) : void

Remove merge group. Unmerge all questions

Parameters
NameTypeDescription
$mergeIdinteger
methodpubliccreateGroup( $questionId) : string

Create group

Parameters
NameTypeDescription
$questionId
Returns
TypeDescription
string
methodpublicgetAll() : array

Return all merge groups

Returns
TypeDescription
array
methodpublicgetGroup( $question_id) : array

return array with group questions from group by question_num

Parameters
NameTypeDescription
$question_id
Returns
TypeDescription
array
methodpublicgetGroups() : array

Return all merge groups

Returns
TypeDescription
array
methodpublicgetGroupsByQuestionId() : array

Returned array QuestionId=>MergeGroupId

Returns
TypeDescription
array
methodpublicgetOne(integer $mergeId) : void

Return array with all questions from merge group

Parameters
NameTypeDescription
$mergeIdinteger
methodpublicremoveFrom(integer $mergeId,  $questionId) : void

Remove one question from merge group

Parameters
NameTypeDescription
$mergeIdinteger
$questionId
methodpublicupdateGroup(integer $mergeId,  $question_id) : string

Update group

Parameters
NameTypeDescription
$mergeIdinteger
$question_id
Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.8.5.