modules/postcollection/controllers/AjaxController.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Postcollection_AjaxController

Package: Postcollection
Encoding_IndexController
Parent(s)
\Scout_Controller
Access
public  
Author
Igor  
Copyright
2012  
Version
$Id$  

Properties

>VPropertyprivate$db
Details
Type
n/a

Methods

methodpublicallTagsAction() : \ViewElements

Display-tags Show all tags

Returns
TypeDescription
\ViewElements
methodpublicallocationAddAction() : \$error_code

Allocate current user to list of questions

Returns
TypeDescription
\$error_code
methodpublicallocationReleaseAction() : \$error_code

release allocated user from questions

Returns
TypeDescription
\$error_code
methodpublicanalizeCreateGroupAction() : \$error_code

Crete Groups after autoAnalize

Returns
TypeDescription
\$error_code
methodpublicanalyzeListAction() : void

Analyze ajax request

methodpublicanswersNotEncodedAction() : \Zend_Json

Request not encoded respondent answers list by question Id

Returns
TypeDescription
\Zend_Json
methodprivatearray_diff_assoc_recursive( $array1,  $array2) : void

Parameters
NameTypeDescription
$array1
$array2
methodprivatearray_get_val_recursive( $array) : void

Parameters
NameTypeDescription
$array
methodpubliccategoriesByQuestionAction() : \Zend_JSON

categories-by-question AJAX request returned JSON array of categories per question ID

Returns
TypeDescription
\Zend_JSONarray
methodpubliccategoriesDeleteAction() : integer

Categories-delete AJAX request must be exists session variables pr_id, qs_id

Returns
TypeDescription
integer$error_code
methodpubliccategoryAddAction() : integer

Category-add AJAX request must be exists session variables pr_id, qs_id, question_id

Returns
TypeDescription
integer$error_code
methodpubliccategoryUpdateAction() : integer

Category-update AJAX request must be exists session variables pr_id, qs_id, question_id

Returns
TypeDescription
integer$error_code
methodpubliccheckCategoryNumberAction() : array

Check number of category.

Returns
TypeDescription
array
methodpubliccopyAllCategoriesAction() : \ViewElements

Copy categories from selected project/questionnaire to selected current project/questionnaire

Returns
TypeDescription
\ViewElements
methodpubliccopyCategoryAction() : \ViewElements

Copy categories from selected project/questionnaire/question to selected question of current project/questionnaire

Returns
TypeDescription
\ViewElements
methodpublicdisplayCategoryAction() : \ViewElements

display-category Show all answers from passe category Id

must be exists session variables pr_id, qs_id

Returns
TypeDescription
\ViewElements
methodpublicdisplayQuestionAction() : \$error_code

Dispalay Question

Returns
TypeDescription
\$error_code
methodpublicdisplayTagsAction() : \ViewElements

Show all tags from category Id

must be exists session variables pr_id, qs_id

Returns
TypeDescription
\ViewElements
methodpublicencodeAction() : \$error_code

Encode data

Returns
TypeDescription
\$error_code
methodpublicgetAnswersAction() : \Zend_Json

Request answers list by question Id

param int id // question Id

Returns
TypeDescription
\Zend_Json
methodpublicgetUsersOnlineAction() : \JSON

Return JSON array of online users statuses.

Returns
TypeDescription
\JSONarray(user_id=>is_online)
methodpublicindexAction() : void

methodpublicinit() : void

Init controller

methodpublicmergeCategoryAction() : integer

Merge-category AJAX request

must be exists session variables pr_id, qs_id

Returns
TypeDescription
integer$error_code
methodpublicmergeDeleteGroupAction() : \Zend_JSON

Return array with content of all Merge groups by merge Id

Returns
TypeDescription
\Zend_JSONarray
methodpublicmergeGetGroupsAction() : \Zend_JSON

merge-get-groups Return array with content of all Merge groups by merge Id

Returns
TypeDescription
\Zend_JSONarray
methodpublicmergeUpdateGroupAction() : \$error_code

Update the group. Chnage all question to has been sent merge-update-group

Returns
TypeDescription
\$error_code
methodpublicmessagelogAction() : \ViewObject

Request generated Info message array! All actions happened from given time returned

Returns
TypeDescription
\ViewObject
methodpublicproofingQuestionAction() : \$error_code

Make proofreading of question

Returns
TypeDescription
\$error_code
methodpublicproofreadingAction() : \$error_code

Proofreading Question

Returns
TypeDescription
\$error_code
methodpublicproofreadingListAction() : void

methodpublicquestionSurveyCategoriesAction() : \ViewElements

Generate list of categories with count answers per category. Filled View elements! must be exists session variables pr_id, qs_id

Returns
TypeDescription
\ViewElements
methodpublicquestionSurveyinfoAction() : void

Get count categorized questions action

methodpublicquestionsListAction() : \HTML

Filled data for questions list in session must be: pr_id , qs_id.

Returns
TypeDescription
\HTMLor json
methodpublicquestionsListShortAction() : \JSON

Return array indexed by question_id. number, text, manual number

in session could be: pr_id , qs_id

Returns
TypeDescription
\JSON
methodpublicreloadQuestionnaireAction() : \HTML

Loaded questionnaire list by project.

Returns
TypeDescription
\HTML
methodpublicsaveSetCustomAction() : \ViewElements

Save custom action

Returns
TypeDescription
\ViewElements
methodpublicselectQuestionnaireAction() : array

Return Questionnaire array.

Returns
TypeDescription
array
methodpublicsetCustomAction() : void

Set-custom action

methodpublicunEncodeAction() : \$error_code

Un encode data

Returns
TypeDescription
\$error_code
Documentation was generated by phpDocumentor 2.8.5.