Class PageCommentsPlugin
page module
- Xoops\Module\Plugin\PluginAbstract
- PageCommentsPlugin implements CommentsPluginInterface
Copyright:
XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Mage Grégory (AKA Mage)
Version: $Id$
Since: 2.6.0
Located at odules/page/class/plugin/comments.php
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Mage Grégory (AKA Mage)
Version: $Id$
Since: 2.6.0
Located at odules/page/class/plugin/comments.php
public
string
|
|
public
string
|
|
public
array
|
|
public
|
#
approve(
This method will be executed upon successful post of an approved comment. This includes comment posts by administrators, and change of comment status from 'pending' to 'active' state. An CommentsComment object that has been approved will be passed as the first and only parameter. This should be useful for example notifying the item submitter of a comment post. |
public
|
|
public
array
|
#
itemInfo( integer $item_id )
This method will be executed whenever a new comment form is displayed. You can set a default title for the comment and a header to be displayed on top of the form ex: return array( 'title' => 'My Article Title', 'text' => 'Content of the article'); 'timestamp' => time(); //Date of the article in unix format 'uid' => Id of the article author |
__construct()
|