mc-cms-namelessmc/modules/Forum/classes/Events/PreTopicCreateEvent.php
Partydragen 370430256f
Remove deprecated event system (#3631)
* Remove old event system & Convert renderPost event

* Remove old event system

* Misc

* Convert Custom Pages to use new event system

* Change RenderPost to RenderContent

* Convert profile posts and messaging

* All events converted

* Fixes

* Fixes

* Add tag support in Profile Posts & Messaging

* Execute rendercreate for profile post reply

* Update webhooks

* Remove return function

* Remove array response

* Remove more array response

* Remove fallback webhooks

* Test phpstan

* Fix phpdoc

* Remove name() & description()
2025-05-02 10:19:52 -07:00

22 lines
No EOL
724 B
PHP

<?php
class PreTopicCreateEvent extends AbstractEvent {
public string $content;
public User $user;
public string $alert_url;
public string $mention_notification_type;
public LanguageKey $mention_notification_title;
public function __construct(string $content, User $user, string $alert_url, string $mention_notification_type, LanguageKey $mention_notification_title) {
$this->content = $content;
$this->user = $user;
$this->alert_url = $alert_url;
$this->mention_notification_type = $mention_notification_type;
$this->mention_notification_title = $mention_notification_title;
}
public static function internal(): bool {
return true;
}
}