44 if (!
$forum) redirect(
"/index");
51 $message->filter =
new ExclusionFilter(
"date_posted");
60 $message->title =
"Re: {$parent->title}";
62 $page->page_title =
"Reply To: {$parent->title}";
63 $parentAuthor =
$parent->Author();
64 $message->message =
"<br/><div class='quote'><strong>{$parentAuthor->getFullName()} wrote on {$parent->date_posted}:</strong><br/>{$parent->message}</div><br/><br/>";
68 $page->page_title =
"Create a Topic for {$forum->title}";
79 $form->button(
"Cancel",
"forum_details?forum_id=$forum_id");
81 $form->hide(
"parent_id",
"topic_id",
"author_id",
"forum_id",
"date_posted",
"deleted");
88 $_POST[
'date_posted'] = now();
93 $_POST[
"message"] .=
"<p><em>Edited by {$user->first_name} {$user->last_name} on ".now().
"</em></p>";
107 $form->data->filter =
new InclusionFilter(
"message_id",
"topic_id");
111 redirect(
"forum_details?forum_id={$forum_id}");
115 redirect(
"forum_topic?forum_id={$forum_id}&topic_id={$message->topic_id}");
127 trace(
"emailSubscribers:: message id {$message->message_id}", 3);
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
Provides the interface to the user model for the application.
$method
Pull out a simple reference to the request method.
static sendInstantNotifications($message)