Definition at line 81 of file comment_manager.inc.
◆ CommentManager()
CommentManager::CommentManager |
( |
| ) |
|
◆ deleteUser()
static CommentManager::deleteUser |
( |
|
$user | ) |
|
|
static |
Respond to fired event DeleteUser.
Delete any records in this component that have dependencies on user object.
- Parameters
-
obj | $user | - class SiteUser or custom user class |
Definition at line 171 of file comment_manager.inc.
176 trace(
"Component comment is deleting objects dependent on user_id {$user_id}", 3);
179 $comment->delete(
"WHERE user_id={$user_id}");
◆ getAdapter()
static CommentManager::getAdapter |
( |
| ) |
|
|
static |
◆ getAdapters()
static CommentManager::getAdapters |
( |
| ) |
|
|
static |
Definition at line 184 of file comment_manager.inc.
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
◆ onInitialize()
static CommentManager::onInitialize |
( |
| ) |
|
|
static |
◆ registerAdapter()
static CommentManager::registerAdapter |
( |
|
$component, |
|
|
|
$parentClass, |
|
|
|
$xrefClass |
|
) |
| |
|
static |
Definition at line 156 of file comment_manager.inc.
158 trace(
"Registering CommentAdapter for $component", 3);
160 $proto = $adapter->createParent();
◆ setDefaultEmailTemplates()
static CommentManager::setDefaultEmailTemplates |
( |
| ) |
|
|
static |
For comment, need default template: new_comment.
Definition at line 119 of file comment_manager.inc.
123 $sitename =
$config[
"sitename"];
124 $contact =
$config[
"email_contact"];
126 $message =
"This is an automated message from the {$sitename}.<br><br>A new comment has been posted. To review and publish this comment, click the link below:<br><br>[article_comment_url]";
static setDefaultTemplate($name, $recipients, $subject, $message, $class_name, $sender_email="")
Create a default template for emails that are sent through Fakoli components (e.g....
◆ setDefaultMergeCodes()
static CommentManager::setDefaultMergeCodes |
( |
| ) |
|
|
static |
Merge codes for ArticleCommentXref: comment_article_id comment_title article_title article_url.
Definition at line 137 of file comment_manager.inc.
static setDefaultMergeCode($name, $map, $class_name, $description="")
Create a default merge codes for emails that are sent through Fakoli components (e....
◆ setDefaults()
static CommentManager::setDefaults |
( |
| ) |
|
|
static |
Definition at line 90 of file comment_manager.inc.
94 Settings::setDefaultValue(
"comment",
"use_captcha",
"Never", String,
"Specify when to use a Captcha to verify the user",
"Commenting Rules",
"Never\nAnonymous Only\nAlways");
96 Settings::setDefaultValue(
"comment",
"enable_item_rating",
false, Boolean,
"Specifies whether to display the rating control",
"Comment Configuration",
null, 2);
97 Settings::setDefaultValue(
"comment",
"show_subject_field",
true, Boolean,
"Specifies whether users can have a title as part of their comment",
"Comment Configuration",
null, 1);
100 "Specifies whether to display the full name or username (handle) of logged in commenters",
"Comment Configuration",
"Full Name\nUsername", 3);
103 "Identifier of a Text Lookup item containing preamble text that appears at the top of the comment panel for anonymous users",
104 "Comment Configuration",
null, 4);
107 "Identifier of a Text Lookup item containing preamble text that appears at the top of the comment panel for logged in users",
108 "Comment Configuration",
null, 5);
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.
◆ upgradeComponent()
static CommentManager::upgradeComponent |
( |
|
$version | ) |
|
|
static |
◆ $adapters
CommentManager::$adapters = array() |
|
static |
The documentation for this class was generated from the following file: