PHP Класс WelcomePostPlugin, addons

Наследование: extends Gdn_Plugin
Показать файл Открыть проект

Открытые методы

Метод Описание
entryController_registrationSuccessful_handler ( ) Redirect users to the /post/discussion end point after registration.
entryController_render_after ( EntryController $sender ) Redirect users to the /post/discussion end point after email confirmation.
postController_beforeDiscussionRender_handler ( PostController $sender, array $args ) Tweak the discussion form.
postController_render_before ( PostController $sender, array $args ) Add needed resources to the page.
setup ( ) Executed when the plugin is enabled.
structure ( ) Create the target category that is needed for this plugin to work.

Защищенные методы

Метод Описание
isWelcomePostActive ( Gdn_Request $request, integer | boolean &$categoryID ) : boolean Check whether all condition are met for this plugin to do its magic.

Описание методов

entryController_registrationSuccessful_handler() публичный Метод

Redirect users to the /post/discussion end point after registration.

entryController_render_after() публичный Метод

Redirect users to the /post/discussion end point after email confirmation.
public entryController_render_after ( EntryController $sender )
$sender EntryController Sending controller instance.

isWelcomePostActive() защищенный Метод

Check whether all condition are met for this plugin to do its magic.
protected isWelcomePostActive ( Gdn_Request $request, integer | boolean &$categoryID ) : boolean
$request Gdn_Request
$categoryID integer | boolean Category ID of the welcome category if it exists and this function return true
Результат boolean

postController_beforeDiscussionRender_handler() публичный Метод

Post in the "welcome" category, prefill title...
public postController_beforeDiscussionRender_handler ( PostController $sender, array $args )
$sender PostController Sending controller instance.
$args array Event's arguments.

postController_render_before() публичный Метод

Add needed resources to the page.
public postController_render_before ( PostController $sender, array $args )
$sender PostController Sending controller instance.
$args array Event's arguments.

setup() публичный Метод

Executed when the plugin is enabled.
public setup ( )

structure() публичный Метод

Create the target category that is needed for this plugin to work.
public structure ( )