Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 Sun Mar 24 07:10:46 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8