Public Member Functions | |
actions () | |
actionLogin ($return_url) | |
actionCreate () | |
actionDelete ($id, $key, $return_url) | |
actionRemoteDelete ($id, $key) | |
actionApprove ($id, $key, $status, $return_url) | |
actionRemoteApprove ($id, $key, $status) | |
onCommentCreated (Comment $comment) | |
onCommentDeleted (Comment $comment) | |
![]() | |
getClient () | |
getAssetsPath () | |
getViewFile ($viewName) | |
getJs ($path) | |
renderMail ($view, $title=null, $data) | |
redirect ($url, $terminate=true, $statusCode=302) |
Protected Member Functions | |
getWidgetPageUrl () | |
![]() | |
beforeAction ($action) |
Additional Inherited Members | |
![]() | |
$layout = '//layouts/gportal' | |
$mailLayout = '//layouts/mail' |
Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales @gen tics. comhttp://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.
Comment controller class file.
Definition at line 12 of file CommentController.php.
CommentController::actionApprove | ( | $id, | |
$key, | |||
$status, | |||
$return_url | |||
) |
Approve comment
int | $id | comment id |
string | $key | options hash key |
int | $status | flag Comment::NOT_APPROVED|Comment::APPROVED. Specify approve comment or not |
string | $return_url | return url |
Definition at line 172 of file CommentController.php.
References CommentsModule\canApprove(), Comment\model(), Comment\NOT_APPROVED, and CommentsModule\t().
CommentController::actionCreate | ( | ) |
Create Comment action. Reads widget options from session using options hash key. Using options to make validation.
Definition at line 67 of file CommentController.php.
References Comment\NOT_APPROVED, onCommentCreated(), and CommentsModule\t().
CommentController::actionDelete | ( | $id, | |
$key, | |||
$return_url | |||
) |
Delete comment
int | $id | comment id |
string | $key | options hash key |
string | $return_url | return url |
CHttpException |
Definition at line 114 of file CommentController.php.
References CommentsModule\canDelete(), Comment\model(), onCommentDeleted(), and CommentsModule\t().
CommentController::actionLogin | ( | $return_url | ) |
Intermediate action. Used for saving $return_url in session to return back after log in.
string | $return_url | Return url |
Definition at line 55 of file CommentController.php.
CommentController::actionRemoteApprove | ( | $id, | |
$key, | |||
$status | |||
) |
Approve comment not logged in. Mainly using in admin mails.
int | $id | comment id |
string | $key | access hash key |
int | $status | flag Comment::NOT_APPROVED|Comment::APPROVED. Specify approve comment or not |
CHttpException |
Definition at line 203 of file CommentController.php.
References Comment\model(), Comment\NOT_APPROVED, and CommentsModule\t().
CommentController::actionRemoteDelete | ( | $id, | |
$key | |||
) |
Delete comment be not logged in. Mainly using in admin mails.
int | $id | comment id |
string | $key | access hash key |
CHttpException |
Definition at line 143 of file CommentController.php.
References Comment\model(), onCommentDeleted(), and CommentsModule\t().
CommentController::actions | ( | ) |
Returns a list of external action classes.
Definition at line 20 of file CommentController.php.
|
protected |
Get page url on which comments widget was placed
Definition at line 36 of file CommentController.php.
Referenced by onCommentCreated(), and onCommentDeleted().
CommentController::onCommentCreated | ( | Comment | $comment | ) |
This method invoked when new comment created
Comment | $comment | comment |
Definition at line 229 of file CommentController.php.
References getWidgetPageUrl(), and CommentsModule\t().
Referenced by actionCreate().
CommentController::onCommentDeleted | ( | Comment | $comment | ) |
This method invoked when comment deleted
Comment | $comment | comment |
Definition at line 274 of file CommentController.php.
References getWidgetPageUrl(), and CommentsModule\t().
Referenced by actionDelete(), and actionRemoteDelete().