13 $key_name = ConnectionManager::escape($_GET[
"key_name"]);
36 $form =
new AutoForm(
$comment,
"POST",
"/action/comment/comment_form?comment_id=$comment_id&xref_class=$xref_class&key_name=$key_name&key_value=$key_value&xref_component=$xref_component",
"EditComment_form");
37 $form->alias(
"title",
"Subject");
38 $form->ajaxSubmit(
"function(result) {new Comment().{$returnFn}(result);}",
"function() {document.id('{$form->id}_error').set('text','Failed to communicate with server'); }");
39 $form->required(
"description");
45 $form->alias(
"author",
"Your Name");
51 $form->readOnly(
"date_posted");
65 $userSelect =
new RelatedItemSelectFieldRenderer(
$form,
"user_id",
"Author",
$userClass,
"WHERE user_id={$comment->user_id}",
"{first_name} {last_name}",
"user_id");
66 $form->readOnly(
"user_id");
67 $form->hide(
"author");
71 $form->hide(
"user_id");
72 $form->readOnly(
"author");
79 $captchaMgr->addCaptchaToForm(
$form);
89 $confirmationMessage =
$form->data->get(
"confirmation_message");
99 echo
$form->writeScript();
Provides a central management class for event handlers and common functionality for the captcha compo...
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
static getValue($component, $name)
Retrieve the value of the specified Setting.
Provides the interface to the user model for the application.
$method
Pull out a simple reference to the request method.