71 return $user->getFullName();
82 $_GET[
"forum_id"] =
$forum->forum_id;
88 if (!checkRole(
$page->role))
94 echo $pageView->drawView();
98 catch(DataNotFoundException $e)
108 $pages = Query::create(
Forum,
"WHERE identifier IS NOT NULL AND identifier != '' ORDER BY title")->execute();
116 Settings::setDefaultValue(
"forum",
"forum_list_items_per_page", 0, Number,
"Number of items per page on the forum list (0 for no pagination)");
117 Settings::setDefaultValue(
"forum",
"forum_topics_per_page", 0, Number,
"Number of topics per page on the forum list (0 for no pagination)");
133 trace(
"Component forum is deleting objects dependent on user_id {$user_id}", 3);
135 $tx =
new DataTransaction();
139 $forums = Query::create(
Forum,
"WHERE owner_id=:owner_id")
187 $tx =
new DataTransaction();
195 $topic->delete(
"WHERE forum_id={$forum_id}");
209 $xref->joinTransaction(
$tx);
210 $xref->delete(
"WHERE forum_id={$forum_id}");
225 $tx =
new DataTransaction();
231 $attachments =
$message->Attachments();
232 if(count($attachments))
235 $xref->joinTransaction(
$tx);
241 $xref->delete(
"WHERE attachment_id={$attachment->attachment_id}");
258 $mgr->upgrade($version);
if(! $attachment_id) $attachment
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
static findByIdentifier($identifier, $constraint="")
ComponentPageView generates the page content for a component page, substituting page fields,...
static findByIdentifier($identifier)
static upgradeComponent($version)
static deleteForum($forum)
When deleting a forum, we must delete topics, messages, attachments and site xrefs.
static registerUserProfileHandler($handler)
static deleteForumMessage($message)
static formatUserProfile($u)
static defaultUserProfileHandler($user)
static initializeUserProfileHandler()
static $userProfileHandler
static registerTaxonomyClasses($classes)
static deleteUser($user)
Respond to fired event DeleteUser.
static displayForum($identifier, &$continue)
static enumerateFora($items)
static storeRedirectPage()
Store the page from which a user has been redirected when prompted to login or create an account.
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.