CommentsDefaultController Class Reference

Inheritance diagram for CommentsDefaultController:
ZurmoBaseController Controller

Public Member Functions

 actionInlineCreateSave ($redirectUrl=null, $uniquePageId=null)
 actionInlineEditSave ($id, $redirectUrl=null, $uniquePageId=null)
 actionInlineEditCommentFromAjax ($id, $relatedModelId, $relatedModelClassName, $relatedModelRelationName, $uniquePageId=null)
 actionAjaxListForRelatedModel ($uniquePageId=null)
 actionDeleteViaAjax ($id)
 actionMarkdownGuide ()

Protected Member Functions

 actionInlineEditValidate ($model)
 checkIfUserHaveAccessToCommentEditAndDeleteAndRenderAjaxAccessFailure (Comment $comment, User $user)

Static Protected Member Functions

static getZurmoControllerUtil ()

Detailed Description

Definition at line 37 of file DefaultController.php.


Member Function Documentation

actionInlineCreateSave ( redirectUrl = null,
uniquePageId = null 
)

Action for saving a new comment inline edit form.

Parameters:
string or array $redirectUrl

Definition at line 43 of file DefaultController.php.

actionInlineEditSave ( id,
redirectUrl = null,
uniquePageId = null 
)

Action to update existing comment

Parameters:
$id 
null $redirectUrl
null $uniquePageId
Exceptions:
NotFoundException 

Definition at line 60 of file DefaultController.php.

actionInlineEditCommentFromAjax ( id,
relatedModelId,
relatedModelClassName,
relatedModelRelationName,
uniquePageId = null 
)

Get inline form for editing existing comments

Parameters:
$id 
$relatedModelId 
$relatedModelClassName 
$relatedModelRelationName 
null $uniquePageId

Definition at line 79 of file DefaultController.php.

checkIfUserHaveAccessToCommentEditAndDeleteAndRenderAjaxAccessFailure ( Comment comment,
User user 
) [protected]

Check if user have access to edit/delete comments, if not render AccessFailureAjaxView

Parameters:
Comment $comment
User $user

Definition at line 172 of file DefaultController.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Dec 12 07:10:57 2019