58 $this->imported =
true;
66 if (isset($_GET[
$parent->getPrimaryKey()]) && checkNumeric($_GET[
$parent->getPrimaryKey()]))
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);
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]";
153 $mgr->upgrade($version);
158 trace(
"Registering CommentAdapter for $component", 3);
160 $proto = $adapter->createParent();
176 trace(
"Component comment is deleting objects dependent on user_id {$user_id}", 3);
179 $comment->delete(
"WHERE user_id={$user_id}");
199 foreach($_GET as $key => $value)
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
static setDefaultTemplate($name, $recipients, $subject, $message, $class_name, $sender_email="")
Create a default template for emails that are sent through Fakoli components (e.g....
static using()
Import the datamodels, views and manifest for the specified component(s).
static setDefaultMergeCode($name, $map, $class_name, $description="")
Create a default merge codes for emails that are sent through Fakoli components (e....
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.